WPF Check box: Check changed handling

后端 未结 6 751
忘掉有多难
忘掉有多难 2020-12-01 13:33

In WPF data binding, I can bind the IsChecked property to some data, e.g. user setting, but I need to handle \"CheckChanged\" event, I know I can seperately handle <

6条回答
  •  有刺的猬
    2020-12-01 14:22

    I know this is an old question, but how about just binding to Command if using MVVM?

    ex:

    
    

    For me it triggers on both Check and Uncheck.

提交回复
热议问题