Why is IsChecked property nullable boolean in WPF CheckBox?

前端 未结 4 1832
囚心锁ツ
囚心锁ツ 2020-12-11 14:36

Is there a case when IsChecked property on WPF CheckBox null ?

I guess that will answer my question from title of question.

4条回答
  •  时光说笑
    2020-12-11 15:08

    It is null when you don't know if its checked or not: http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.togglebutton.ischecked.aspx

    In many systems a checkbox like this is shaded instead of being checked.

提交回复
热议问题