Table of Contents

Class CheckButton

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

A check button widget that can be checked or unchecked independently.

public class CheckButton : CheckButtonBase, IItemWithId, INotifyAttachedPropertyChanged, IContent
Inheritance
CheckButton
Implements
Inherited Members

Constructors

CheckButton(Stylesheet, string)

Initializes a new instance of the CheckButton class with the specified stylesheet and style.

public CheckButton(Stylesheet stylesheet, string styleName = "")

Parameters

stylesheet Stylesheet

The stylesheet to use for applying the style.

styleName string

The name of the style to apply. Defaults to the default stylesheet style.

CheckButton(string)

Initializes a new instance of the CheckButton class with the specified style.

public CheckButton(string styleName = "")

Parameters

styleName string

The name of the style to apply. Defaults to the default stylesheet style.

Properties

IsChecked

Gets or sets a value indicating whether the check button is checked.

public bool IsChecked { get; set; }

Property Value

bool

Events

IsCheckedChanged

Occurs when the checked state of the check button changes.

public event MyraEventHandler IsCheckedChanged

Event Type

MyraEventHandler