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


In This Topic
    ToggleButton Class
    In This Topic
    A control offering a Button that has the ability to switch state, just like a CheckBox.
    Syntax
    'Usage
     
    
    Dim instance As ToggleButton
    Remarks
    The ToggleButton can be checked, unchecked or in an indeterminate state.
    Example

    The following code would display this control:

    <xctk:ToggleButton Content="My ToggleButton"
                       HorizontalOptions="Center"
                       BorderBrush="Orange"
                       BorderThickness="4"
                       CornerRadius="5"/>
    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
                                        Xceed.Maui.Toolkit.RadioButton

    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