Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / CheckBox Class
Members Example


CheckBox Class
Similar to the Framework's CheckBox control, but with more flexibility than said control since, for example, it has 3 states (Selected, Unselected, Indeterminate) & that it is possible to customize the symbols associated with each of those states; it is also possible to modify the Control's size & the box's size independently, as well as display Content next to the box.
Syntax
Example
The following code would display this control:
 
<xctk:CheckBox IsChecked="True"
               Content="This is a CheckBox"
               IsAnimated="True"
               BoxSizeRequest="40"
               Background="LightGray"
               BorderThickness="2"
               BorderBrush="Black"/>
Inheritance Hierarchy

System.Object
   Microsoft.Maui.Controls.BindableObject
      Microsoft.Maui.Controls.Element
         Microsoft.Maui.Controls.NavigableElement
            Microsoft.Maui.Controls.VisualElement
               Microsoft.Maui.Controls.View
                  Microsoft.Maui.Controls.Compatibility.Layout
                     Microsoft.Maui.Controls.TemplatedView
                        Xceed.Maui.Toolkit.Control
                           Xceed.Maui.Toolkit.ContentControl
                              Xceed.Maui.Toolkit.Button
                                 Xceed.Maui.Toolkit.ToggleButton
                                    Xceed.Maui.Toolkit.CheckBox

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also