How can I stop the control from calling Equals on all items?
> MyApp.exe!MyApp.MyCustomClass.Equals(MyApp.MyCustomClass other) Line 56 C#
MyApp.exe!MyApp.MyCustomClass.Equals(object obj) Line 48 C#
mscorlib.dll!object.Equals(object objA, object objB) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemsControl.EqualsEx(object o1, object o2) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.ContainerFromItem.AnonymousMethod__0(object o, System.Windows.DependencyObject d) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.DoLinearSearch(System.Func<object, System.Windows.DependencyObject, bool> match, out object item, out System.Windows.DependencyObject container, out int itemIndex, bool returnLocalIndex) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.ContainerFromItem(object item) Unknown
Syncfusion.Shared.Wpf.dll!Syncfusion.Windows.Tools.Controls.ComboBoxAdv.SelectItems() Unknown
Syncfusion.Shared.Wpf.dll!Syncfusion.Windows.Tools.Controls.ComboBoxItemAdv.OnApplyTemplate() Unknown
//This is call stack
After I add items to the ComboBoxAdv ItemsSource bound property the control calls "Equals" on all the items it contains. This is a call stack of such call: MyApp.exe!MyApp.MyCustomClass.Equals(MyApp.MyCustomClass other) Line 56 C#
MyApp.exe!MyApp.MyCustomClass.Equals(object obj) Line 48 C#
mscorlib.dll!object.Equals(object objA, object objB) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemsControl.EqualsEx(object o1, object o2) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.ContainerFromItem.AnonymousMethod__0(object o, System.Windows.DependencyObject d) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.DoLinearSearch(System.Func<object, System.Windows.DependencyObject, bool> match, out object item, out System.Windows.DependencyObject container, out int itemIndex, bool returnLocalIndex) Unknown
PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.ContainerFromItem(object item) Unknown
Syncfusion.Shared.Wpf.dll!Syncfusion.Windows.Tools.Controls.ComboBoxAdv.SelectItems() Unknown
Syncfusion.Shared.Wpf.dll!Syncfusion.Windows.Tools.Controls.ComboBoxItemAdv.OnApplyTemplate() Unknown
I need to avoid this behavior.
Thanks.