Back to Devexpress

CheckEdit.IndeterminateCheckBoxImage Property

maui-devexpress-dot-maui-dot-editors-dot-checkedit-71275539.md

latest3.0 KB
Original Source

CheckEdit.IndeterminateCheckBoxImage Property

Gets or sets the checkbox icon in the indeterminate state. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public ImageSource IndeterminateCheckBoxImage { get; set; }

Property Value

TypeDescription
ImageSource

The icon.

|

Remarks

Use the following properties to specify the color of the checkbox in different states:

  • CheckBoxColor — Gets or sets the color of the checkbox in the unchecked state. This is a bindable property.
  • CheckedCheckBoxColor — Gets or sets the color of the checkbox in the checked state. This is a bindable property.
  • DisabledCheckBoxColor — Gets or sets the color of the checkbox in the disabled unchecked state. This is a bindable property.
  • DisabledCheckedCheckBoxColor — Gets or sets the color of the checkbox in the disabled checked state. This is a bindable property.

If you specify a custom checkbox and want to use the default colors, set these properties to {x:Null}.

Use the following properties to specify the checkbox icon in different states:

  • CheckedCheckBoxImage — Gets or sets the checkbox icon in the checked state. This is a bindable property.
  • UncheckedCheckBoxImage — Gets or sets the checkbox icon in the unchecked state. This is a bindable property.
  • IndeterminateCheckBoxImage — Gets or sets the checkbox icon in the indeterminate state. This is a bindable property.

Example

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

xaml
<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"/>

See Also

CheckEdit Class

CheckEdit Members

DevExpress.Maui.Editors Namespace