Table of Contents

Class ToggleSwitch

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

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

DependencyProperty

OnContentProperty

Identifies the OnContent dependency property.

public static readonly DependencyProperty OnContentProperty

Field Value

DependencyProperty

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

object

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; }

Property Value

object