Skip to main content

SimpleButton.ShowShadow Property

Gets or sets the button shadow visibility. This is a bindable property.

Namespace: DevExpress.Maui.Controls

Assembly: DevExpress.Maui.Controls.dll

NuGet Package: DevExpress.Maui.Controls

Declaration

public bool ShowShadow { get; set; }

Property Value

Type Default Description
Boolean False

true to make the shadow visible; otherwise, false.

Remarks

Enable the ShowShadow property to show a button shadow with default settings. To customize shadow appearance settings, use the button’s Shadow property.

The following example shows how to draw a button’s shadow and customize its appearance:

DevExpress Button for .NET MAUI -- Configure the button shadow

<dxc:SimpleButton Text="SUBMIT"
                  Clicked="OnSubmitClicked"
                  FontAttributes="Bold"
                  Margin="0, 20" 
                  ShowShadow="True">
    <dxc:SimpleButton.Shadow>
        <Shadow Radius="20" Opacity="0.8" 
                Brush="Darkgray" Offset="10,10"/>
    </dxc:SimpleButton.Shadow>
</dxc:SimpleButton>
See Also