Watermark Support in WPF ComboBox (ComboBoxAdv)

29 Mar 20231 minute to read

It displays the default text in the ComboBoxAdv when none of the items is selected in the drop down list.

Property Description Type Data Type Reference links
DefaultText It is possible to display the default text. Dependency Property String NA

Adding DefaultText property to an application

DefaultText property can be added directly to an application in the following way:

<syncfusion:ComboBoxAdv DefaultText="..Choose Items.."></syncfusion:ComboBoxAdv>
ComboBoxAdv comboBox = new ComboBoxAdv();       
comboBox.DefaultText = "..Choose Items..";

Adding default text of watermark-support in WPF combobox