Home » FAQ » WPF » ComboBox » How do I add an item to the combo’s choice list with value empty string in XAML?
Your first instinct is probably to add a ComboBoxItem as follows:
[XAML] <ComboBoxItem></ComboBoxItem>
But, that wouldn’t work. Instead you will have to specify an empty string as follows:
[XAML] <ComboBoxItem Content=''></ComboBoxItem>
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with