Skip to content

ToggleSwitch

Javier Suárez edited this page Aug 24, 2020 · 4 revisions

ToggleSwitch

A View control that provides a toggled value.

Features

  • Options to customize background colors, Thumb, etc.
  • Different VisualTypes support (Cupertino, Fluent and Material).
  • ControlTemplate support.

Using the Control

IsToggled is a boolean value that indicates whether the ToggleSwitch is on.

<controls:ToggleSwitch IsToggled="True" />

Appearance

ToggleSwitch also defines properties to customize the appearance like OffColor, OnColor and ThumbColor properties.

<controls:ToggleSwitch
    OffColor="OrangeRed"
    OnColor="Orange"
    BorderColor="Orange"
    BorderWidth="4"/>
Clone this wiki locally