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
stylesheetStylesheetThe stylesheet to use for applying the style.
styleNamestringThe 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
styleNamestringThe 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
Events
IsCheckedChanged
Occurs when the checked state of the check button changes.
public event MyraEventHandler IsCheckedChanged