All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
1.1
The page you are viewing does not exist in version 1.1. This link will take you to the root page.

CheckEdit Class

A checkbox that supports the indeterminate state.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

Declaration

public class CheckEdit :
    View

Remarks

The CheckEdit is a three-state editor that supports the checked, unchecked, and indeterminate states.

State

Use the IsChecked property to specify the checked state. If this property is set to null, the editor is in the indeterminate state. To allow users to set the indeterminate state, enable the AllowIndeterminateInput option.

<dxe:CheckEdit Label="Automatic date and time"
               IsChecked="True"/>
<dxe:CheckEdit Label="Automatic time zone"
               IsChecked="False"/>
<dxe:CheckEdit Label="Use 24-hour format"
               AllowIndeterminateInput="True"
               IsChecked="{x:Null}"/>

Checkbox and Label

The CheckEdit consists of a checkbox icon that indicates the state and a label next to the checkbox.

To customize the label, use the following properties:

Property

Description

Label

Specifies the text displayed next to the checkbox.

LabelColor

DisabledLabelColor

Specify the color of the label.

LabelHorizontalAlignment

LabelVerticalAlignment

Specify the alignment of the label.

LabelTextDecorations

Allows you to underline and/or cross out the label.

LabelFontSize

LabelFontFamily

LabelFontAttributes

Specify the font settings of the label.

To customize the checkbox, use the following properties:

Property

Description

CheckedCheckBoxImage

UncheckedCheckBoxImage

IndeterminateCheckBoxImage

Specify the checkbox image in different states.

CheckBoxAlignment

CheckBoxPosition

Specify the alignment of the checkbox.

CheckBoxColor

CheckedCheckBoxColor

DisabledCheckBoxColor

DisabledCheckedCheckBoxColor

Specify the color of the checkbox in different states.

CheckBoxIndent

Specifies the indent between the checkbox and label.

The code below uses custom toggle icons for the CheckEdit in the checked and unchecked states.

<dxe:CheckEdit Label="Automatic date and time" 
               IsChecked="True" 
               CheckedCheckBoxImage="baseline_toggle_on_24" 
               UncheckedCheckBoxImage="baseline_toggle_off_24"/>
<dxe:CheckEdit Label="Automatic time zone" 
               IsChecked="False" 
               CheckedCheckBoxImage="baseline_toggle_on_24" 
               UncheckedCheckBoxImage="baseline_toggle_off_24"/>

Implements

Xamarin.Forms.IAnimatable
Xamarin.Forms.ITabStopElement
Xamarin.Forms.IViewController
Xamarin.Forms.IVisualElementController
Xamarin.Forms.IElementController
Xamarin.Forms.Internals.IGestureController
Xamarin.Forms.IGestureRecognizers

Inheritance

Object
Xamarin.Forms.BindableObject
Xamarin.Forms.Element
Xamarin.Forms.NavigableElement
Xamarin.Forms.VisualElement
View
CheckEdit
See Also