公开切换按钮属性的视图模型。 A view model which exposes the properties of a toggle button.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
command |
Command | 切换按钮时将执行的命令。 The command which will be executed when the button is toggled. | ||||||||||||
options |
object |
可选 optional
具有以下属性的对象: Object with the following properties:
|
成员 Members
获取切换按钮时将执行的命令。 Gets the command which will be executed when the button is toggled.
获取或设置按钮当前是否处于切换状态。这个性质是可以观察到的。 Gets or sets whether the button is currently toggled. This property is observable.
-
默认值: Default Value:
false
获取或设置按钮的工具提示。这个性质是可以观察到的。 Gets or sets the button's tooltip. This property is observable.
-
默认值: Default Value:
''
