Skip to main content

ToggleButton

Description​

Use ToggleButton when a command switches a state on or off and should look pressed while active.

ToggleButton in light mode ToggleButton in dark mode

Example usage​

<fluence:ToggleButton Content="Wrap text" IsChecked="True" />

Key properties​

PropertyDefaultPurpose
IsCheckedfalseCurrent checked state.
AppearanceStandardSets the visual emphasis.
CornerRadius4Rounds the surface.

State and behavior​

IsChecked controls the persistent pressed presentation; the gallery also demonstrates unchecked and disabled states.

Events​

Checked and Unchecked report state changes.

Reference​