Table of Contents

Class ToggleButton

Namespace
Icy.UI.Controls
Assembly
IcyUI.dll

A Button that toggles IsChecked each time it's tapped/activated, and reflects it via Checked for styling.

public class ToggleButton : Button, INotifyPropertyChanging, IBindingTarget, INotifyPropertyChanged, INotifyFocusChanged, IContainerLayout
Inheritance
ToggleButton
Implements
Derived
Inherited Members
Extension Methods

Properties

IsChecked

Gets or sets a value indicating whether this element is checked/on.

[BindingOverride(BindingMode.TwoWay)]
public bool IsChecked { get; set; }

Property Value

bool

Methods

OnClick()

Raises Click and executes Command if it can execute.

protected override void OnClick()

Events

IsCheckedChanged

Occurs when IsChecked changes.

public event EventHandler? IsCheckedChanged

Event Type

EventHandler