CheckBox
Note: You can check the Avalonia docs for the CheckBox and CheckBox API if you need more information.
For Avalonia.FuncUI's DSL properties you can check CheckBox.fs
The checkbox is a control that allows a user to represent boolean values or the absense of a value
Usage
Set Label
Set Is Checked
Set Indeterminate
To be able to set the indeterminate state, the
isThreeState
value must be true and theisChecked
value must be None or Nullable boolean set to null
Set Dynamic State Checkbox
You can mix and match the three states of a checkbox. In this example if the count value is greater than 0 the box will be checked, if the value is 0 then it will be indeterminate, lastly if the value is less than 0 it will be unchecked
Last updated