Back to Devexpress

BottomSheet.AllowedState Property

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

latest1.8 KB
Original Source

BottomSheet.AllowedState Property

Specifies whether the bottom sheet can be fully expanded, half expanded, or both. This is a bindable property.

Namespace : DevExpress.Maui.Controls

Assembly : DevExpress.Maui.Controls.dll

NuGet Package : DevExpress.Maui.Controls

Declaration

csharp
public BottomSheetAllowedState AllowedState { get; set; }

Property Value

TypeDescription
BottomSheetAllowedState

A value that specifies the allowed bottom sheet state.

|

Available values:

NameDescription
FullExpanded

A bottom sheet can only be shown in full-screen mode (FullExpanded state).

| | HalfExpanded |

A bottom sheet can only be shown in half-screen mode (HalfExpanded state).

| | All |

A bottom sheet can be shown in full-screen mode (FullExpanded state) and half-screen mode (HalfExpanded state).

|

Remarks

The following markup allows a user to show the bottom sheet on half of the screen only. A user cannot maximize this bottom sheet to the full screen:

xaml
<dxc:BottomSheet ...
                 HalfExpandedRatio="0.5"
                 AllowedState="HalfExpanded">
</dxc:BottomSheet>

See Also

BottomSheet Class

BottomSheet Members

DevExpress.Maui.Controls Namespace