-
Notifications
You must be signed in to change notification settings - Fork 47
ToggleSwitch
Javier Suárez edited this page Aug 24, 2020
·
4 revisions
A View control that provides a toggled value.
- Options to customize background colors, Thumb, etc.
- Different VisualTypes support (Cupertino, Fluent and Material).
- ControlTemplate support.
![](https://github.com/jsuarezruiz/TemplateUI/raw/master/images/templateui-toggleswitch.png)
IsToggled is a boolean value that indicates whether the ToggleSwitch is on.
<controls:ToggleSwitch IsToggled="True" />
ToggleSwitch also defines properties to customize the appearance like OffColor, OnColor and ThumbColor properties.
<controls:ToggleSwitch
OffColor="OrangeRed"
OnColor="Orange"
BorderColor="Orange"
BorderWidth="4"/>