New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a checkbox control that extends the standard with additional styling and functionality.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadCheckBox : CheckBox, IRadCheckBox, ICheckBox, IView, IElement, ITransform

Inheritance: objectRadCheckBox

Derived Classes: TreeViewItemCheckBox

Implements: ICheckBoxIElementIRadCheckBoxITransformIView

Constructors

Initializes a new instance of the RadCheckBox class.

C#
public RadCheckBox()

Fields

CheckedColorProperty

BindableProperty

Identifies the CheckedColor property.

C#
public static readonly BindableProperty CheckedColorProperty

Identifies the CheckedSymbolColor property.

C#
public static readonly BindableProperty CheckedSymbolColorProperty

CommandParameterProperty

BindableProperty

Identifies the CommandParameter property.

C#
public static readonly BindableProperty CommandParameterProperty

CommandProperty

BindableProperty

Identifies the Command property.

C#
public static readonly BindableProperty CommandProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius property.

C#
public static readonly BindableProperty CornerRadiusProperty

Identifies the IndeterminateColor property.

C#
public static readonly BindableProperty IndeterminateColorProperty

Identifies the IndeterminateSymbolColor property.

C#
public static readonly BindableProperty IndeterminateSymbolColorProperty

IsAnimatedProperty

BindableProperty

Identifies the IsAnimated property.

C#
public static readonly BindableProperty IsAnimatedProperty

IsCheckedProperty

BindableProperty

Identifies the IsChecked property.

C#
public static readonly BindableProperty IsCheckedProperty

IsThreeStateProperty

BindableProperty

Identifies the IsThreeState property.

C#
public static readonly BindableProperty IsThreeStateProperty

LengthProperty

BindableProperty

Identifies the Length property.

C#
public static readonly BindableProperty LengthProperty

StrokeWidthProperty

BindableProperty

Identifies the StrokeWidth property.

C#
public static readonly BindableProperty StrokeWidthProperty

ToggleOnTapProperty

BindableProperty

Identifies the ToggleOnTap attached property.

C#
public static readonly BindableProperty ToggleOnTapProperty

UncheckedColorProperty

BindableProperty

Identifies the UncheckedColor property.

C#
public static readonly BindableProperty UncheckedColorProperty

Properties

Gets or sets the Color applied to the control when it is checked. The default value is Black.

C#
public Color CheckedColor { get; set; }

Implements: IRadCheckBox.CheckedColor

Gets or sets the Color applied to the check symbol of the control. The default value is Black.

C#
public Color CheckedSymbolColor { get; set; }

Implements: IRadCheckBox.CheckedSymbolColor

Gets or sets the command to execute when the IsChecked property of the checkbox changes.

C#
public ICommand Command { get; set; }

Gets or sets the parameter to pass to the Command property.

C#
public object CommandParameter { get; set; }

Gets or sets the corner radius of the checkbox. If null or value less than 0 is set, the default platform value will be used.

C#
public double? CornerRadius { get; set; }

Implements: IRadCheckBox.CornerRadius

Gets or sets the Color applied to the control when it is Indeterminate. The default value is Black.

C#
public Color IndeterminateColor { get; set; }

Implements: IRadCheckBox.IndeterminateColor

Gets or sets the Color applied to the Indeterminate symbol of the control. The default value is Black.

C#
public Color IndeterminateSymbolColor { get; set; }

Implements: IRadCheckBox.IndeterminateSymbolColor

Gets or sets a boolean value indicating whether to play animations during state transitions. The default value is true.

C#
public bool IsAnimated { get; set; }

Implements: IRadCheckBox.IsAnimated

Gets or sets a IsChecked. The default value is false.

C#
public bool? IsChecked { get; set; }

Implements: IRadCheckBox.IsChecked

Gets a value indicating whether the control is enabled, considering both the base implementation and command availability.

C#
protected override bool IsEnabledCore { get; }

Gets or sets a boolean value indicating if the UI can set the Value of the control to null. The default value is false.

C#
public bool IsThreeState { get; set; }

Implements: IRadCheckBox.IsThreeState

Gets or sets the size of the checkbox.

C#
public double Length { get; set; }

Implements: IRadCheckBox.Length

Gets or sets the width with which the symbols are drawn.

C#
public double StrokeWidth { get; set; }

Implements: IRadCheckBox.StrokeWidth

Gets or sets the Color applied to the control when it is unchecked. The default value is Black.

C#
public Color UncheckedColor { get; set; }

Implements: IRadCheckBox.UncheckedColor

Methods

Gets the RadCheckBox associated with the specified BindableObject.

C#
public static RadCheckBox GetToggleOnTap(BindableObject bindable)
Parameters:bindableBindableObject

The BindableObject to get the associated RadCheckBox from.

Returns:

RadCheckBox

The RadCheckBox associated with the specified BindableObject.

Called when a property value changes.

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

The name of the property that changed.

Sets the RadCheckBox to be associated with the specified BindableObject.

C#
public static void SetToggleOnTap(BindableObject bindable, RadCheckBox checkBox)
Parameters:bindableBindableObject

The BindableObject to associate the RadCheckBox with.

checkBoxRadCheckBox

The RadCheckBox to associate with the specified BindableObject.

Events

Occurs when the IsChecked property has changed.

C#
public event EventHandler<IsCheckedChangedEventArgs> IsCheckedChanged

Occurs when the IsChecked property is about to change. This event can be canceled by setting Cancel to true.

C#
public event EventHandler<IsCheckedChangingEventArgs> IsCheckedChanging
Remarks:

This event is raised both when the change originates from user interaction (e.g., tapping the checkbox) and when the property is set programmatically. If canceled during a programmatic change, the value will be reverted.