Skip to main content

Switches

Overview

Switches in UI design are interactive elements that allow users to toggle between two states, often representing an on/off or active/inactive status. They provide a clear and intuitive way for users to control settings or actions within an application or website. Switches are essential for enhancing user experience and functionality in modern digital interfaces.

Modus Switches Documentation

Usage

<modus:TMSwitch Text="WiFI"
                SwitchSize="Large"
                IsEnabled="True"
                Toggled="TMSwitchToggled"
                ToggledCommand="{Binding SwitchCommand}"/>

Output

Switch

Properties

Property type Description
Text string Title of the Switch
SwitchSize SwitchSize Defines the height of the Switch
IsEnabled bool When set to True it enables user interaction
Toggled EventHandler<TMSwitchEventArgs> Called when a Switch is tapped
ToggledCommand ICommand Called when a Switch is tapped
Last updated October 28, 2024.