Display “Select an item” in Combobox when selectedItem is null
问题 I have a WPF Combobox that is bound to a list of viewModel objects. Initially the SelectedItem is null, and thus the Combobox display is blank. When the selected item is null, I would prefer the Combobox to display "Select an item" to guide the user to select something from the combobox. sort of like the way, some text boxes contain gray text such as "enter user name" Any ideas on how to do this? Edit: I ended up using the suggestion to overlay a textbox, and change its visibility based on