ToggleSwitch : Control
Implemented for: WASM, Skia, Mobile
This document lists all properties, methods, and events of ToggleSwitch that are currently implemented by the Uno Platform. See the WinUI documentation for detailed usage guidelines which all automatically apply to Uno Platform.
In addition, ToggleSwitch has Uno-specific documentation here.
To better understand how ToggleSwitch works, you can use the Uno Gallery or run your own tests on the Uno Playground.
Implemented properties
| Property | Supported on |
|---|---|
| DataTemplate OnContentTemplate | WASM, Skia, Mobile |
| object OnContent | WASM, Skia, Mobile |
| DataTemplate OffContentTemplate | WASM, Skia, Mobile |
| object OffContent | WASM, Skia, Mobile |
| bool IsOn | WASM, Skia, Mobile |
| DataTemplate HeaderTemplate | WASM, Skia, Mobile |
| object Header | WASM, Skia, Mobile |
| ToggleSwitchTemplateSettings TemplateSettings | WASM, Skia, Mobile |
| DependencyProperty HeaderProperty | WASM, Skia, Mobile |
| DependencyProperty HeaderTemplateProperty | WASM, Skia, Mobile |
| DependencyProperty IsOnProperty | WASM, Skia, Mobile |
| DependencyProperty OffContentProperty | WASM, Skia, Mobile |
| DependencyProperty OffContentTemplateProperty | WASM, Skia, Mobile |
| DependencyProperty OnContentProperty | WASM, Skia, Mobile |
| DependencyProperty OnContentTemplateProperty | WASM, Skia, Mobile |
Implemented methods
| Method | Supported on |
|---|---|
| void OnToggled() | WASM, Skia, Mobile |
| void OnOnContentChanged(object, object) | WASM, Skia, Mobile |
| void OnOffContentChanged(object, object) | WASM, Skia, Mobile |
| void OnHeaderChanged(object, object) | WASM, Skia, Mobile |
Implemented events
| Event | Supported on |
|---|---|
| RoutedEventHandler Toggled | WASM, Skia, Mobile |
Below are all properties, methods, and events of ToggleSwitch that are not currently implemented in Uno.
Not implemented properties
| Property | Not supported on |
|---|---|
| DataTemplate OnContentTemplate | MacOS |
| object OnContent | MacOS |
| DataTemplate OffContentTemplate | MacOS |
| object OffContent | MacOS |
| bool IsOn | MacOS |
| DataTemplate HeaderTemplate | MacOS |
| object Header | MacOS |
| ToggleSwitchTemplateSettings TemplateSettings | MacOS |
| DependencyProperty HeaderProperty | MacOS |
| DependencyProperty HeaderTemplateProperty | MacOS |
| DependencyProperty IsOnProperty | MacOS |
| DependencyProperty OffContentProperty | MacOS |
| DependencyProperty OffContentTemplateProperty | MacOS |
| DependencyProperty OnContentProperty | MacOS |
| DependencyProperty OnContentTemplateProperty | MacOS |
Not implemented methods
| Method | Not supported on |
|---|---|
| void OnToggled() | MacOS |
| void OnOnContentChanged(object, object) | MacOS |
| void OnOffContentChanged(object, object) | MacOS |
| void OnHeaderChanged(object, object) | MacOS |
Not implemented events
| Event | Not supported on |
|---|---|
| RoutedEventHandler Toggled | MacOS |
Last updated Friday, 19 June 2026 22:32.