Key Features

The purpose of this help article is to show you the key features of the RadCheckBox control.

CheckBox States

RadCheckBox provides three states – Checked, Unchecked and Indeterminate. The state is controlled through the IsChecked property which is of type bool?. The state could be set either through the UI or programmatically as explained below:

  • Checked/Unchecked state - when IsChecked is true/false respectively;
  • Indeterminate state - when IsChecked is null;

The default value of IsChecked is false.

Here is an example how you can set the Indeterminate state:

<telerikPrimitives:RadCheckBox x:Name="checkboxIsChecked" IsChecked="{x:Null}"  />

CheckBox Length

The width and height of the checkbox is controlled through the Length property and maintains a 1:1 aspect ratio.

Here is an example of setting the Length value:

<telerikPrimitives:RadCheckBox x:Name="checkboxLength" Length="40" StrokeWidth="5"/>

Stroke Thickness

The RadCheckBox control exposes a StrokeWidth property that specifies the width of the lines with which the Checkbox element is drawn. It affects the border of the control as well as the check mark.

Here is an example how you can apply a StrokeWidth value:

<telerikPrimitives:RadCheckBox x:Name="checkboxStrokeWidth" StrokeWidth="5"/>

Example

Here is the result at runtime showing the above Indeterminate state as well as StrokeWidth and Length examples:

CheckBox Key Feature Example

See Also

In this article
Not finding the help you need? Improve this article