WPF Checkbox check IsChecked

后端 未结 8 841
别跟我提以往
别跟我提以往 2020-12-08 10:25

I\'m not talking about an event handler for this, but rather a simple If Statement checking if the CheckBox has been checked. So far I have:

<
8条回答
  •  死守一世寂寞
    2020-12-08 10:53

    Multiple answers already but here is another alternative

    if (chkRevLoop.IsChecked.GetValueOrDefault()) {}
    

    From MSDN

提交回复
热议问题