Class ScaffoldBottomSheetOptions
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
Presentation options of ShowBottomSheetAsync(View, ScaffoldBottomSheetOptions?). The sheet renders in the top overlay layer and slides from the bottom edge over any chrome. Drag is recognized natively (cooperatively with inner scrollables); detent geometry, snapping and pull-down-to-close live at the virtual view layer — no native sheet controller is involved.
public sealed class ScaffoldBottomSheetOptions
- Inheritance
-
ScaffoldBottomSheetOptions
- Inherited Members
Properties
AllowPullDownToClose
Gets or sets whether releasing a drag well below the smallest detent (~56dp) dismisses the sheet. Defaults to true.
public bool? AllowPullDownToClose { get; init; }
Property Value
- bool?
CloseOnBack
Gets or sets whether the Android system back closes the sheet (iOS has no system back). Defaults to true; when false, back is consumed without closing while the sheet is topmost.
public bool? CloseOnBack { get; init; }
Property Value
- bool?
CloseOnScrimTap
Gets or sets whether tapping the scrim closes the sheet. Defaults to true.
public bool? CloseOnScrimTap { get; init; }
Property Value
- bool?
Detents
Gets or sets the resting heights (order and duplicates are irrelevant — heights are sorted and de-duplicated). Must be non-empty when set. Defaults to a single Content detent.
public ScaffoldSheetDetent[]? Detents { get; init; }
Property Value
InitialDetent
Gets or sets the index (into Detents) the sheet opens at. Defaults to 0.
public int? InitialDetent { get; init; }
Property Value
- int?
KeyboardMode
Gets or sets how the sheet reacts to the soft keyboard (see ScaffoldKeyboardMode). Defaults to Resize; the content's KeyboardModeProperty is the attached counterpart.
public ScaffoldKeyboardMode? KeyboardMode { get; init; }
Property Value
MaxWidth
Gets or sets the maximum sheet width. Defaults to unbounded (full window width); when the window is wider (tablets, landscape), the sheet floats centered at this width, still bottom-anchored.
public double? MaxWidth { get; init; }
Property Value
Scrim
Gets or sets the scrim brush behind the sheet (gradients supported). Defaults to a theme-aware translucent black.
public Brush? Scrim { get; init; }
Property Value
ShowDragHandle
Gets or sets whether the built-in drag handle is shown. Defaults to true.
public bool? ShowDragHandle { get; init; }
Property Value
- bool?