[Root] / Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit Namespace / ToggleSwitch Class / IsChecked Property


In This Topic
    IsChecked Property (ToggleSwitch)
    In This Topic
    Gets or sets if the ToggleSwitch is currently in the checked state (true), the unchecked state (false) or the indeterminate state (null).
    Syntax
    'Declaration
     
    
    Public Property IsChecked As Nullable(Of Boolean)
    'Usage
     
    
    Dim instance As ToggleSwitch
    Dim value As Nullable(Of Boolean)
     
    instance.IsChecked = value
     
    value = instance.IsChecked
    public Nullable<bool> IsChecked {get; set;}

    Property Value


    Remarks
    When in the indeterminate state, the ToggleSwitch thumb won't be visible and the control's background will use the UncheckedBackground.
    Supported Frameworks

    See Also