Tried to do some searching on this, but couldn’t find exactly what I needed. I’d like to have a combobox with hardcoded items, but contain a default string. For example:
–Select Item–
Item1
Item2
Item3
I do not want the –Select Item– to appear within the list, only on the combobox itself.
Also I do not want this value to be editable.
Thanks.
You could override the default template and to include a TextBlock there which only is visible if the
SelectedItemisnull(use a style with datatrigger for that). To get a default tenmplate you can modify check MSDN (Default WPF Themeslink).