为什么IsChecked属性nullable布尔在WPF复选框? [英] Why is IsChecked property nullable boolean in WPF CheckBox?

查看:205
本文介绍了为什么IsChecked属性nullable布尔在WPF复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种情况,当WPF CheckBox的IsChecked属性为空吗?

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

我想这将回答我的问题从标题。

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

推荐答案

当您不知道是否选中它时,它为null: http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.togglebutton。 ischecked.aspx

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.

这篇关于为什么IsChecked属性nullable布尔在WPF复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆