WPF: ComboBox with reset item

后端 未结 9 1920
长发绾君心
长发绾君心 2020-12-15 23:33

I want to make a ComboBox in WPF that has one null item on the top, when this gets selected, the SelectedItem should be set to null (reset to default state). I\

9条回答
  •  半阙折子戏
    2020-12-16 00:01

    Remove the following line and add a CheckBox, then you can perform your custom operation.

        (None)
    

提交回复
热议问题