I have ViewModel
(implemented INotifyPropertyChanged
) in the background and class Category
which has only one property of type string
If Combobox is bound to object class of the View Model, while the SelectionBoxItem
of the sender object (in the SelectionChanged
in code behind) has not that type, it means it's still loading.
ComboBox combo = sender as ComboBox;
if (combo.SelectionBoxItem.GetType() == typeof(BindedClass))
{
// Not loading
}