Hello,
I'm having some difficulties with null and a ComboBox in WPF/C#; If a add a null item it is not shown/listed in the ComboBox.
Here is de XAML declaration of my ComboBox
<ComboBox ItemsSource="{Binding Path=MyList}"
SelectedItem="{Binding Path=Type}" />
MyList is declared as
public ObservableCollection<Type> MyList { get; private set; }
and initialized with
this.MyList = new ObservableCollection<Type>();
this.MyList.Add(null);
The binding works fine, and if I add non-null items the are listed. Do I need to specify to allow null values?
lg, Dominik