ToggleButton.IsChecked Property
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
[TypeConverterAttribute(typeof(NullableBoolConverter))] [LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable)] public Nullable<bool> IsChecked { get; set; }
/** @property */ public Nullable<boolean> get_IsChecked () /** @property */ public void set_IsChecked (Nullable<boolean> value)
public function get IsChecked () : Nullable<boolean> public function set IsChecked (value : Nullable<boolean>)
<object IsSynchronizedWithCurrentItem="Boolean"/>- or -<object IsSynchronizedWithCurrentItem="{x:Null}"/>
Property Value
true if the ToggleButton is checked; false if the ToggleButton is unchecked; otherwise a null reference (Nothing in Visual Basic). The default is false.A control that inherits from ToggleButton determines its behavior when this property is a null reference (Nothing in Visual Basic).
CheckBox
When the IsThreeState property is set to true, a user can click a CheckBox to pick three possible states. The following table describes the three states of a CheckBox.
| State of the CheckBox | Value of IsChecked |
|---|---|
| Checked | true |
| Unchecked | false |
| Indeterminate | a null reference (Nothing in Visual Basic) |
If IsThreeState is false, you can still programmatically set this property to a null reference (Nothing in Visual Basic) to put the CheckBox in an indeterminate state, but the user cannot set the CheckBox to the indeterminate state through the user interface (UI).
RadioButton
If you set this property to a null reference (Nothing in Visual Basic) on a RadioButton, the RadioButton is unchecked.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.