Skip to main content
A newer version of this page is available. .

BottomSheet.Show(BottomSheetState, Element) Method

Invokes the bottom sheet. You can optionally specify the bottom sheet’s size and its parent element.

Namespace: DevExpress.Maui.Controls

Assembly: DevExpress.Maui.Controls.dll

NuGet Package: DevExpress.Maui.Controls

Declaration

public void Show(
    BottomSheetState state = BottomSheetState.HalfExpanded,
    Element parent = null
)

Optional Parameters

Name Type Default Description
state BottomSheetState HalfExpanded

Specifies the bottom sheet’s expanded state.

parent Element null

Specifies the bottom sheet’s parent element.

Remarks

The following example expands the Bottom Sheet once a user changes the selected item in a CollectionView:

private void CollectionView_SelectionChanged(object sender, SelectionChangedEventArgs e) {
    bottomSheet.HalfExpandedRatio = 0.4;
    bottomSheet.Show(BottomSheetState.HalfExpanded);
}
See Also