Back to Devexpress

BottomSheet.AllowDismiss Property

maui-devexpress-dot-maui-dot-controls-dot-bottomsheet-aa7fc8bb.md

latest1.3 KB
Original Source

BottomSheet.AllowDismiss Property

Gets or sets whether a user can hide the bottom sheet with a swipe-down gesture. This is a bindable property.

Namespace : DevExpress.Maui.Controls

Assembly : DevExpress.Maui.Controls.dll

NuGet Package : DevExpress.Maui.Controls

Declaration

csharp
public bool AllowDismiss { get; set; }

Property Value

TypeDefaultDescription
BooleanTrue

true if users can swipe down the bottom sheet to dismiss it; otherwise, false.

|

Remarks

The following markup allows users to swipe a bottom sheet down to close it:

xaml
<dxc:BottomSheet ...
                 AllowDismiss="True">
</dxc:BottomSheet>

To programmatically close the bottom sheet, set its BottomSheet.State property to Hidden.

See Also

BottomSheet Class

BottomSheet Members

DevExpress.Maui.Controls Namespace