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

Not implemented methods

Not implemented events

Event Not supported on
RoutedEventHandler Toggled MacOS

Last updated Wednesday, 02 April 2025 09:11.