Xceed Toolkit for Maui v2.0 Documentation
Button Class
Members  Example 


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace : Button Class
A more flexible Button control than the one offered by the MAUI Framework, since it can use all of the advantages offered by the Border control (independent BorderThickness & CornerRadius, alignment, property inheritance, ...) and can contain any type of ViewContentTemplate. It also offers a ClickMode that allows to activate it on a Press or Release action of the pointer. 
Syntax
'Usage
 
Dim instance As Button
Example

The following code will display this Button:

<xctk:Button Background="Gray"
             BorderBrush="Yellow"
             BorderThickness="3"
             CornerRadius="5"
             Margin="20">
 <HorizontalStackLayout>
  <Label Text="Xceed"
         VerticalOptions="Center"/>
  <Image HeightRequest="32"
         WidthRequest="32"
         Source="Resources/Images/logox.png"/>
  <Label Text="Button"
         VerticalOptions="Center"/>
</HorizontalStackLayout>
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.RepeatButton
                                 Xceed.Maui.Toolkit.ToggleButton

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

Reference

Button Members
Xceed.Maui.Toolkit Namespace