Setting the MaxValue, MinValue and Value properties at runtime doesn't work when the settings are done in the Opened event handler of RadDatePicker. The DateTime values of the properties are updated as expected, but this is not reflected in the UI.
To work this around, you can use the Click event of the internal DateTimePickerButton, instead of the Opened event.
private void DatePicker_Loaded(object sender, RoutedEventArgs e)
{
var btn = this.datePicker.FindChildByType<DateTimePickerButton>();
btn.Click += Btn_Click;
}
private void Btn_Click(object sender, RoutedEventArgs e)
{
var vm = (MainViewModel)this.datePicker.DataContext;
this.datePicker.MinValue = DateTime.Today;
}
The following exception is thrown when expanding row details with a height larger than the row height:
ArgumentOutOfRangeException: "Non-negative number required."
The group header row overlaps the column headers when scrolling to a column that is out of view upon previously resizing the window and the GroupHeaderDisplayMode is Frozen.
"Processing Resources failed" compile-time error is thrown when the following nuget packages are referenced together:
- Telerik.ReportViewer.WinUI
- Telerik.WinUI.Controls
It is enough only to reference the packages and try to build the project.
The error appears also if you try to reference the .dll instead of nuget packages. But only in case the Telerik.WinUI.Controls.dll file is not referenced from the installation folder of the Telerik Reporting product.
Error details:
1>WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry. 1>WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI222: 0x80073b0f - Unspecified error occurred.
VS WPF PdfViewer,When the WinUI PdfViewer show the document, the text is fuzzy.
View the attachments,in the picture,the wpf PdfViewer show the text better.
If you have already selected item(s) and then click on a new one to select it without holding Shift or Ctrl, the previous selection is cleared. This action should raise SelectionChanged with items in the RemovedItems collection of the event arguments. You can see this behavior in the native ListBox control. Also, this is how the RadDataGrid control is behaving in Single SelectionMode.
However, currently, if the SelectionMode is set to Extended, the RemovedItems collection doesn't contain any items.
If you use the DataGridComboBoxColumn or the DataGridTemplateColumn with a ComboBox in its template, you cannot open the drop down of the ComboBox when you click onto it. This reproduces only if you try to click on the arrow icon that opens the drop down or somewhere in the control where no text is presented. If you have already selected item and some text is displayed, you can click onto the text in order to open the drop down.
To workaround this, you can subscribe to the Tapped event of ComboBox control and set the Handled property of the event arguments to True. If you use the DataGridComboBoxColumn, you can create a custom class that derives from it and override its CreateEditorContentVisual method. This will allow you to get the ComboBox and subscribe to its event.
public class CustomComboBoxColumn : DataGridComboBoxColumn
{
public override FrameworkElement CreateEditorContentVisual()
{
var comboBox = (ComboBox)base.CreateEditorContentVisual();
comboBox.Unloaded += ComboBox_Unloaded;
comboBox.Tapped += ComboBox_Tapped;
return comboBox;
}
private void ComboBox_Unloaded(object sender, RoutedEventArgs e)
{
var comboBox = (ComboBox)sender;
comboBox.Unloaded -= ComboBox_Unloaded;
comboBox.Tapped -= ComboBox_Tapped;
}
private void ComboBox_Tapped(object sender, Microsoft.UI.Xaml.Input.TappedRoutedEventArgs e)
{
e.Handled = true;
}
}
The DataGrid ScrollBar is covered by the group header when grouping.
looking the attachment.
I have bought a licence and am trying to update my project to use the licenced nuget packages instead of the trial ones. The problem is that I am only able to see the trial packages in the nuget package explorer.
I have run the installer and added https://nuget.telerik.com/v3/index.json as the nuget source. I know that at some point when I first added a package I filled in my credentials, because of reasons the licenced version is tied to another account, if this could have anything to do with it.