Table of Contents

Class ScaffoldPopupOptions

Namespace
Nalu
Assembly
Nalu.Maui.Scaffold.dll

Presentation options of ShowPopupAsync(View, ScaffoldPopupOptions?). Popups render in the top overlay layer — above all chrome and previously presented overlays (popup-over-popup stacks) — and are unaffected by the tab bar's safe-area footprint: only SYSTEM insets shape the presentation area.

public sealed class ScaffoldPopupOptions
Inheritance
ScaffoldPopupOptions
Inherited Members

Properties

Anchor

Gets or sets the view the anchor placements position relative to.

public View? Anchor { get; init; }

Property Value

View

AnchorOffset

Gets or sets the gap pushing the popup away from the anchor along the placement direction (sign follows the chosen side; RTL-mirrored).

public Point AnchorOffset { get; init; }

Property Value

Point

CloseOnBack

Gets or sets whether the Android system back closes the popup (iOS has no system back; the edge-swipe pop is disabled while an overlay is open). Defaults to true; when false, back is consumed without closing while this popup is topmost.

public bool? CloseOnBack { get; init; }

Property Value

bool?

CloseOnScrimTap

Gets or sets whether tapping the scrim closes the popup. Defaults to true.

public bool? CloseOnScrimTap { get; init; }

Property Value

bool?

CustomPlacer

Gets or sets a fully custom placement, overriding Placement.

public IScaffoldPopupPlacer? CustomPlacer { get; init; }

Property Value

IScaffoldPopupPlacer

KeyboardMode

Gets or sets how the popup 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

ScaffoldKeyboardMode?

Margin

Gets or sets the minimum gap kept between the popup and the safe-area edges (the placement area shrinks by it). Defaults to 16. To cap the popup's own size, set MaximumWidthRequest / MaximumHeightRequest on the content — both participate in the popup measure.

public Thickness? Margin { get; init; }

Property Value

Thickness?

Placement

Gets or sets the placement. Anchor placements fall back to Center when Anchor is unset or not realized. Defaults to Center.

public ScaffoldPopupPlacement? Placement { get; init; }

Property Value

ScaffoldPopupPlacement?

Scrim

Gets or sets the scrim brush behind the popup (gradients supported). Defaults to a theme-aware translucent black; use a fully transparent brush for dropdown-style popups — the scrim always blocks interaction with the content below either way.

public Brush? Scrim { get; init; }

Property Value

Brush