Skip to main content

SimpleButton.CornerMode Property

Gets or sets whether button corners are rounded or cut. This is a bindable property.

Namespace: DevExpress.Maui.Controls

Assembly: DevExpress.Maui.Controls.dll

NuGet Package: DevExpress.Maui.Controls

Declaration

public CornerMode CornerMode { get; set; }

Property Value

Type Default Description
CornerMode Round

Round for rounded corners, Cut for facets.

Available values:

Name Description
Round

Edit box corners are rounded.

DevExpress MAUI TextEdit - Unfocused CornerRadius

Cut

Edit box corners are cut.

DevExpress MAUI TextEdit - Unfocused CornerRadius Cut

Example

This example shows how to customize button appearance and handle the button click event.

Button State

Default Appearance

Custom Appearance

Default

DevExpress MAUI SimpleButton - Unfocused State

DevExpress MAUI SimpleButton - Unfocused State Example

Pressed

DevExpress MAUI SimpleButton - Pressed State

DevExpress MAUI SimpleButton - Pressed State Example

Disabled

DevExpress MAUI SimpleButton - Disabled State

DevExpress MAUI SimpleButton - Disabled State Example

  1. Add the delete.png icon file to the Resources/Images folder.

  2. Use the following properties to adjust the button’s appearance and handle the Clicked event to clear label1 on button tap:

    <dxco:SimpleButton Text = "Clear" 
                       Icon = "delete" 
                       BorderThickness="2"
                       BorderColor="Black"
                       PressedBorderColor="DarkOrange"
                       DisabledBorderColor="DarkGray"
                       TextColor="Black"
                       PressedTextColor="White"
                       DisabledTextColor="DarkGray"
                       IconColor="Black"
                       PressedIconColor="White"
                       DisabledIconColor="DarkGray"
                       BackgroundColor="Beige"
                       DisabledBackgroundColor="Brown"
                       PressedBackgroundColor="Gray"
                       CornerMode = "Round"        
                       CornerRadius="10"
                       Clicked = "SimpleButton_Clicked"/>
    
    private void SimpleButton_Clicked(object sender, EventArgs e) {
        label1.Text = "";
    }
    
See Also