Skip to main content

ToggleSwitch

Description​

Use toggle switches for settings that take effect immediately.

ToggleSwitch in light mode ToggleSwitch in dark mode

Toggled state​

ToggleSwitch toggled state in light mode ToggleSwitch toggled state in dark mode

Example usage​

<fluence:ToggleSwitch IsChecked="True" />

Key properties​

PropertyDefaultPurpose
HeaderContentnullContent displayed as the switch header.
OnContentnullContent displayed for the on state.
OffContentnullContent displayed for the off state.
IsCheckedfalseCurrent toggle state.

State and behavior​

IsChecked changes the switch position immediately; IsEnabled controls the disabled appearance.

Events​

Checked and Unchecked report state changes.

Reference​