EMAIL: info@ardisialabs.com
Contact envelope

ToggleSwitchDesktop

Overview

ToggleSwitch component designed for desktop use.

Creating the ToggleSwitch Component

The ToggleSwitch component extends ToggleButton and can be added to any container that implements IVisualElementContainer.

Using the ToggleSwitch Component

Functions just like a ToggleButton. Most of the logic is handled in the skin, but the labels can be set via properties.

Layout

The default skin layout can accurately measure the toggle button based on the labels. It is not necessary to set explicit dimensions.

Animations & Effects

The thumb will animate by default. Customize the skin to change the animation.

Accessibility

Field can be tabbed to and selected/de-selected via the SPACE key when focused just like a vanilla ToggleButton.

Themes & Skinning

A skin is provided for the Spark theme.

Example

See the ToggleSwitch demo application for example code.

Back To Top