ToggleButton
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class ToggleButton : System.Windows.Controls.Primitives.ToggleButton
A Fluent Design styled ToggleButton with accent checked state.
Base type: System.Windows.Controls.Primitives.ToggleButton (including inherited WPF and .NET members)
Constructors
ToggleButton
public ToggleButton()
Creates a new ToggleButton instance.
Properties
Appearance
public ControlAppearance Appearance { get; set; }
Gets or sets the visual appearance of the toggle button.
Remarks: The default template renders the single canonical WinUI toggle visual for every ControlAppearance value: the checked state is the accent state, so a separate accent rest variant would make checked and unchecked indistinguishable. The property exists primarily for derived controls such as DropDownButton, which consume it in their own templates.
CornerRadius
public CornerRadius CornerRadius { get; set; }
Gets or sets the corner radius of the toggle button.
Dependency property identifiers
Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.
AppearanceProperty
public static readonly DependencyProperty AppearanceProperty
Identifies the Appearance dependency property.
CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
Identifies the CornerRadius dependency property.