ToggleButton.IsChecked property
Gets or sets whether the ToggleButton is checked.
Syntax
<togglebutton IsChecked="bool"/> -or- <togglebutton IsChecked="{x:Null}"/>
XAML Values
- togglebutton
-
A literal ToggleButton, or a derived type such as CheckBox or RadioButton.
Property value
Type: IReference<Boolean> [C++] | System.Nullable<Boolean> [.NET]
true if the ToggleButton is checked; false if the ToggleButton is unchecked; otherwise null. The default is false.
If you are programming using C# or Visual Basic, the type of this property is projected as bool? (a nullable Boolean).
Remarks
The nullable value for IsChecked enables the value to be indeterminate, neither true nor false. This is indicated by a value of null. To set the value to null in XAML, use the x:Null markup extension.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 3/12/2013
