语言

ToggleButton.IsThreeState 属性

定义

确定控件是否支持两种或三种状态。

public:
 property bool IsThreeState { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsThreeState { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.IsThreeState : bool with get, set
Public Property IsThreeState As Boolean

属性值

true 如果控件支持三种状态,则为否则,为 false. 默认值为 false。

特性

注解

属性 IsChecked 可以设置为 null 第三种状态(当 IsThreeState 为 true.

Dependency 属性信息

项目 价值
标识符字段 IsThreeStateProperty
元数据属性设置为 true None

适用于