Docs / UI

Glossary: CheckBox Style

The properties, methods and events of CheckBox, in alphabetical order.

Color legend plain property dependency property method event

A box with a text or any element beside it. It works as a check box that turns on and off, or as a radio button that is one choice of a group.

CheckBox derives from BaseElement and has its members too. The controls page shows it in context, with code and screenshots.

Names are colored by what they are: a plain property, a method, an event or a dependency property, which a style, a binding or an animation can set.

Properties

Checked 馃爢

bool 路 Whether the box is checked. Setting it raises OnCheckedUnchecked, and checking a radio button unchecks the others of its group.

CheckedSolidColor 馃爢

Color 路 The color of the box while it is checked, without textures. (86, 156, 214) unless set (DefaultSettings.DefaultCheckBoxCheckedColor).

Content 馃爢

BaseElement 路 Any element shown beside the box instead of a text. A content you give is detached, not disposed, when it is replaced.

Direction 馃爢

CheckBoxDirection 路 Which side of the content the box is on: Left (the default) or Right.

GeneralMouseCursorsSet 馃爢

MouseCursorsSet 路 Static. The cursors of every element of this style type; null (the default) falls back to DefaultMouseCursorsSet.

GeneralStyle 馃爢

CheckBoxStyle 路 Static. The style of every element of this style type. It starts as a copy of the framework defaults; changing one of its properties updates every such element, a property it leaves unset takes its default.

GroupId 馃爢

string 路 The group of a radio button: the radio buttons in the tree with the same id uncheck each other. Not used by a CheckBox.

ImageStyle 馃爢

ImageStyle 路 The style of the image that draws the box.

MouseCursorsSet 馃爢

MouseCursorsSet 路 Read-only. The cursors the element shows: its override, else the set given to the control it is a part of, else its type鈥檚 general set, else DefaultMouseCursorsSet.

MouseCursorsSetOverride 馃爢

MouseCursorsSet 路 The cursors of this element only, passed on to its parts that have none of their own.

StyleOverride 馃爢

CheckBoxStyle 路 A style for this element only, applied over the general style. Setting it to null takes its values back out.

Text 馃爢

string 路 Creates a Label content showing this text, styled by TextStyle.

TextStyle 馃爢

LabelStyle 路 The style of the text content made from Text.

Type 馃爢

CheckBoxType 路 CheckBox (the default) or RadioButton.

UncheckedSolidColor 馃爢

Color 路 The color of the box while it is unchecked, without textures. (150, 150, 160) unless set (DefaultSettings.DefaultCheckBoxUncheckedColor).

Methods

CheckBox() 馃爢

CheckBox(string name = null) 路 Creates a check box. The name is used by GetElementByName.

Parameter Type Description
name string The element鈥檚 Name, which GetElementByName finds it by. Default: null.

Events

OnCheckedUnchecked 馃爢

(BaseElement sender, bool isChecked) 路 Checked changes: by a click, from code, by a binding, or because another box of the group was checked.

Parameter Type Description
sender BaseElement The element that raised the event.
isChecked bool Whether the box is checked now.