Back to Devexpress

BottomSheet.Show(BottomSheetState, Element) Method

maui-devexpress-dot-maui-dot-controls-dot-bottomsheet-dot-show-x28-devexpress-dot-maui-dot-controls-dot-bottomsheetstate-microsoft-dot-maui-dot-controls-dot-element-x29.md

latest1.5 KB
Original Source

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

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

Optional Parameters

NameTypeDefaultDescription
stateBottomSheetStateHalfExpanded

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:

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

See Also

BottomSheet Class

BottomSheet Members

DevExpress.Maui.Controls Namespace