ComboBox Clear Text when DropDown is Closed
The following article will show you how to clear the Text of the ComboBox when the SelectionMode
is Multiple
and the dropdown is closed.
Example
Here are the steps needed to achieve the functionality describe above.
First, if we want to clear the Text, the control should be in Editable mode. In addition we will use Multiple Selection:
Inside the ComboBox Unfocused
event we will set the ComboBox.Text
prioperty to srting.Empty
:
the business model used:
Here is the ViewModel used:
Example for Clear Text when DropDown is closed can be found in the ComboBox/How To section from the SDK Browser Application.