CheckBox
Last updated
Last updated
CheckBox is a component which can be used to represent a bool value (true or false) at runtime.
The CheckBox control can optionally include a Text instance named TextInstance. Setting the CheckBox control’s Text property changes the TextInstance’s displayed string.
A nullable bool indicating whether the CheckBox is checked. Note that the value is a bool? , but the current implementation of FlatRedBall.Forms does not support the *indeterminate *value (a value of null ). IsChecked can be read from the control or can be explicitly set on the control as shown in the following example:
CheckBox provides events for when it is checked and unchecked as shown in the following example:
CheckBox also exposes the more general Click event which can be used to handle any click regardless of IsChecked state, as shown in the following example: