ToggleButton
Description
Use ToggleButton when a command switches a state on or off and should look pressed while active.
Example usage
- XAML
- C#
<fluence:ToggleButton Content="Wrap text" IsChecked="True" />
var toggle = new Fluence.Wpf.Controls.ToggleButton { Content = "Pin", IsChecked = true };
Key properties
| Property | Default | Purpose |
|---|---|---|
IsChecked | false | Current checked state. |
Appearance | Standard | Sets the visual emphasis. |
CornerRadius | 4 | Rounds 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.