RadCheckBox
Represents a checkbox control that extends the standard with additional styling and functionality.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadCheckBox : CheckBox, IRadCheckBox, ICheckBox, IView, IElement, ITransform
Inheritance: objectRadCheckBox
Derived Classes:
Implements:
Constructors
Initializes a new instance of the RadCheckBox class.
public RadCheckBox()
Fields
CheckedColorProperty
BindableProperty
Identifies the CheckedColor property.
public static readonly BindableProperty CheckedColorProperty
CheckedSymbolColorProperty
BindableProperty
Identifies the CheckedSymbolColor property.
public static readonly BindableProperty CheckedSymbolColorProperty
CommandParameterProperty
BindableProperty
Identifies the CommandParameter property.
public static readonly BindableProperty CommandParameterProperty
CommandProperty
BindableProperty
Identifies the Command property.
public static readonly BindableProperty CommandProperty
CornerRadiusProperty
BindableProperty
Identifies the CornerRadius property.
public static readonly BindableProperty CornerRadiusProperty
IndeterminateColorProperty
BindableProperty
Identifies the IndeterminateColor property.
public static readonly BindableProperty IndeterminateColorProperty
IndeterminateSymbolColorProperty
BindableProperty
Identifies the IndeterminateSymbolColor property.
public static readonly BindableProperty IndeterminateSymbolColorProperty
IsAnimatedProperty
BindableProperty
Identifies the IsAnimated property.
public static readonly BindableProperty IsAnimatedProperty
IsCheckedProperty
BindableProperty
Identifies the IsChecked property.
public static readonly BindableProperty IsCheckedProperty
IsThreeStateProperty
BindableProperty
Identifies the IsThreeState property.
public static readonly BindableProperty IsThreeStateProperty
LengthProperty
BindableProperty
Identifies the Length property.
public static readonly BindableProperty LengthProperty
StrokeWidthProperty
BindableProperty
Identifies the StrokeWidth property.
public static readonly BindableProperty StrokeWidthProperty
ToggleOnTapProperty
BindableProperty
Identifies the ToggleOnTap attached property.
public static readonly BindableProperty ToggleOnTapProperty
UncheckedColorProperty
BindableProperty
Identifies the UncheckedColor property.
public static readonly BindableProperty UncheckedColorProperty
Properties
CheckedColor
Color
Gets or sets the Color applied to the control when it is checked. The default value is Black.
public Color CheckedColor { get; set; }
Implements:
CheckedSymbolColor
Color
Gets or sets the Color applied to the check symbol of the control. The default value is Black.
public Color CheckedSymbolColor { get; set; }
Implements:
Gets or sets the command to execute when the IsChecked property of the checkbox changes.
public ICommand Command { get; set; }
Gets or sets the parameter to pass to the Command property.
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.
public double? CornerRadius { get; set; }
Implements:
IndeterminateColor
Color
Gets or sets the Color applied to the control when it is Indeterminate. The default value is Black.
public Color IndeterminateColor { get; set; }
Implements:
Gets or sets the Color applied to the Indeterminate symbol of the control. The default value is Black.
public Color IndeterminateSymbolColor { get; set; }
Implements:
Gets or sets a boolean value indicating whether to play animations during state transitions. The default value is true.
public bool IsAnimated { get; set; }
Implements:
Gets or sets a IsChecked. The default value is false.
public bool? IsChecked { get; set; }
Implements:
Gets a value indicating whether the control is enabled, considering both the base implementation and command availability.
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.
public bool IsThreeState { get; set; }
Implements:
Gets or sets the size of the checkbox.
public double Length { get; set; }
Implements:
Gets or sets the width with which the symbols are drawn.
public double StrokeWidth { get; set; }
Implements:
UncheckedColor
Color
Gets or sets the Color applied to the control when it is unchecked. The default value is Black.
public Color UncheckedColor { get; set; }
Implements:
Methods
Gets the RadCheckBox associated with the specified BindableObject.
public static RadCheckBox GetToggleOnTap(BindableObject bindable)
The BindableObject to get the associated RadCheckBox from.
Returns:The RadCheckBox associated with the specified BindableObject.
Called when a property value changes.
protected override void OnPropertyChanged(string propertyName = null)
The name of the property that changed.
Sets the RadCheckBox to be associated with the specified BindableObject.
public static void SetToggleOnTap(BindableObject bindable, RadCheckBox checkBox)
The BindableObject to associate the RadCheckBox with.
checkBoxRadCheckBoxThe RadCheckBox to associate with the specified BindableObject.
Events
Occurs when the IsChecked property has changed.
public event EventHandler<IsCheckedChangedEventArgs> IsCheckedChanged
Occurs when the IsChecked property is about to change. This event can be canceled by setting Cancel to true.
public event EventHandler<IsCheckedChangingEventArgs> IsCheckedChanging
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.