ToggleSwitch : Control

Implemented for: all platforms supported by Uno Platform

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 all platforms supported by Uno Platform
object OnContent all platforms supported by Uno Platform
DataTemplate OffContentTemplate all platforms supported by Uno Platform
object OffContent all platforms supported by Uno Platform
bool IsOn all platforms supported by Uno Platform
DataTemplate HeaderTemplate all platforms supported by Uno Platform
object Header all platforms supported by Uno Platform
ToggleSwitchTemplateSettings TemplateSettings all platforms supported by Uno Platform
DependencyProperty HeaderProperty all platforms supported by Uno Platform
DependencyProperty HeaderTemplateProperty all platforms supported by Uno Platform
DependencyProperty IsOnProperty all platforms supported by Uno Platform
DependencyProperty OffContentProperty all platforms supported by Uno Platform
DependencyProperty OffContentTemplateProperty all platforms supported by Uno Platform
DependencyProperty OnContentProperty all platforms supported by Uno Platform
DependencyProperty OnContentTemplateProperty all platforms supported by Uno Platform

Implemented methods

Method Supported on
void OnToggled() all platforms supported by Uno Platform
void OnOnContentChanged(object, object) all platforms supported by Uno Platform
void OnOffContentChanged(object, object) all platforms supported by Uno Platform
void OnHeaderChanged(object, object) all platforms supported by Uno Platform

Implemented events

Event Supported on
RoutedEventHandler Toggled all platforms supported by Uno Platform

Last updated Thursday, 21 November 2024 15:21.