Class ToggleSwitch
Use ToggleSwitch to present users with two mutally exclusive options (like on/off).
public class ToggleSwitch : ToggleButton, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
- Inheritance
-
ToggleSwitch
- Implements
- Inherited Members
Fields
OffContentProperty
Identifies the OffContent dependency property.
public static readonly DependencyProperty OffContentProperty
Field Value
OnContentProperty
Identifies the OnContent dependency property.
public static readonly DependencyProperty OnContentProperty
Field Value
Properties
OffContent
Gets or sets the content that should be displayed when the ToggleSwitch is in the "Off" state.
[Bindable(true)]
public object? OffContent { get; set; }
Property Value
OnContent
Gets or sets the content that should be displayed when the ToggleSwitch is in the "On" state.
[Bindable(true)]
public object? OnContent { get; set; }