WPF Check box: Check changed handling

后端 未结 6 880
忘掉有多难
忘掉有多难 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:16

    What about the Checked event? Combine that with AttachedCommandBehaviors or something similar, and a DelegateCommand to get a function fired in your viewmodel everytime that event is called.

提交回复
热议问题