Cancel combobox selection in WPF with MVVM

后端 未结 12 1467
你的背包
你的背包 2020-12-08 10:23

I\'ve got a combobox in my WPF application:



        
12条回答
  •  一整个雨季
    2020-12-08 10:49

    Very simple solution for .NET 4.5.1+:

    
    

    It's works for me in all cases. You can rollback selection in combobox, just fire NotifyPropertyChanged without value assignment.

提交回复
热议问题