In my WPF application, I'm using Office theme (2016 or 2019). It causes that some of controls I'm using has an odd style. For example, Xceed DoubleUpDown/IntegerUpDown etc. has an additional internal border. I'd like to avoid overriding the entire control template.
How to solve this problem?
Thanks!
public class BaseType{ public int Id { get; set; }} public class ChildType1 : BaseType{ public string Name1 { get; set; }} public class ChildType2 : BaseType{ public string Name2 { get; set; }} // View model public class WindowViewModel : ViewModelBase{ public ObservableCollection<BaseType> Items { get; }}I have a problem with binding to ItemSource from ViewModel with
ObservableCollection. It's a generic collection of base type e.g.
BaseType. Moreover I have a few child classes inherited from BaseType.
They contain loads of additional properties of simple types such like
double, int, string. For each child type I have another DataTemplate
with different column definitions. When I'm opening the window,
System.ArgumentException is throwing from Telerik with message "Property
with name XXX cannot be fround on type BaseType". Due to this problem,
GridView's performance is unacceptable (in release mode either).
How to solve that problem?
Thanks for help!
Hello.
I have previously posted a post.Please refer to the link.
SpreadSheet Cell changed event infinite loop.
I tested it after seeing it was updated and built today.
But I don't know what has changed.
Still, errors and infinite loops appear. (System.StackOverflowException: ''System.StackOverflowException' )
Thanks.
Is there any way to assign a callout to (say) the Open Image Button of the RadImageEditorUI?
I can't seem to find any way to get a reference to a button within the RadImageEditorUI control so I can assign it to a callout.
Thanks

I am calling RadWindow's Alert in the following code.
Even though it transfers control to the main window of the program, it disappears if you do not click the OK button after showing it for a while.
And I can't click the confirmation button anymore.
call.cs
AlertWindow.Alert(ret.Error.UserMessage);
alertWindow.cs
public class AlertWindow
{ public static void Alert(string msg, string header=null, ILog log = null, ContentControl contentControl=null) { if (header == null) header = "title"; if (contentControl == null) contentControl = Application.Current.Windows.Cast<Window>().FirstOrDefault(win => win.Topmost); Telerik.Windows.Controls.RadWindow.Alert(new Telerik.Windows.Controls.DialogParameters { Content = msg, Header = header, OkButtonContent = MulBangUl.Resources.Localization.CommonResources.CmdConfirm, Owner = contentControl }); if (log != null) log.Info(msg); }}

I need coordinates where exactly I clicked the mouse on the loaded image in WPF RadImageEditor (not the coordinator of the editor but the image). Any ideas how to achieve this goal?
Andrzej


I have a listbox defined in the xaml -
<telerik:RadListBox x:Name="CartLineItems" ItemsSource="{Binding LineItems}" SelectedItem="{Binding SelectedArticle, Mode=TwoWay}"ItemTemplate="{StaticResource ConfectioneryDataTemplate}" VerticalAlignment="Stretch"HorizontalAlignment="Stretch" Background="LightGray"></telerik:RadListBox>
I frequently need to clear and repopulate the ItemsSource to refresh the Listbox. (LineItems is an observable collection). When I clear the collection, the SelectedItem is also cleared (visually). When I repopulate and set the SelectedItem object with data, there is no item in the ListBox which is selected. Below is the code -
private void RefreshLineItems(){ // Store the selected article for later use. LineItem selectedLineItem = null; if (SelectedArticle != null) selectedLineItem = SelectedArticle; // Clear all the line items. LineItems.Clear(); // Iterate through the cart to re-populate LineItems and reset the selected article. if (ActiveCart != null) { foreach (LineItem lineItem in ActiveCart.lineItems) { LineItems.Add(lineItem); } if (selectedLineItem != null) SelectedArticle = ActiveCart.lineItems.Find(x => x.articleID == selectedLineItem.articleID); }}
How do I get the selected item to re-appear on the listbox after the ItemsSource is cleared?
Thanks.
Gopinath

Dear sir,
I am using the Rad Masked Currency Input control in my project. One of the requirement is to show empty content when the value is null.
Unfortunately, when I set the empty Content property to string. Empty or to null , I still see the default value in the control ( zero number).
I can see an error in the output window of problem to convert null object to value.
I have noticed that after pressing the clear button and opening again the control the content become empty.
Do you have a solution to this scenario?
Thank you,
Yafit hamilton