Table of Contents

Class ScaffoldOverlayEventArgs

Namespace
Nalu
Assembly
Nalu.Maui.Scaffold.dll

Describes an overlay lifecycle event raised by OverlayEvent: one Presented / Closed pair per overlay instance, after the fact (never cancelable). Overlays are not pages, so they never appear in NavigationEvent; this is the hook for analytics (screen-like tracking of popups, sheets, drawers and the tab bar panel) and diagnostics.

public sealed class ScaffoldOverlayEventArgs : EventArgs
Inheritance
ScaffoldOverlayEventArgs
Inherited Members

Properties

Content

Gets the presented view (for a bottom sheet: the content you passed, not the sheet wrapper).

public View Content { get; }

Property Value

View

EventType

Gets the lifecycle moment.

public ScaffoldOverlayEventType EventType { get; }

Property Value

ScaffoldOverlayEventType

FlyoutSide

Gets the drawer side for Flyout events; null otherwise.

public ScaffoldFlyoutSide? FlyoutSide { get; }

Property Value

ScaffoldFlyoutSide?

Intent

Gets the intent delivered to the overlay model (IOverlayService overlays only).

public object? Intent { get; }

Property Value

object

Kind

Gets the overlay kind.

public ScaffoldOverlayKind Kind { get; }

Property Value

ScaffoldOverlayKind

Model

Gets the overlay model for overlays shown through IOverlayService (the view itself for view-only registrations); null for view-level presentations (ShowPopupAsync(View, ScaffoldPopupOptions?), ShowBottomSheetAsync(View, ScaffoldBottomSheetOptions?), ShowTabBarPanelAsync(View, Brush?, bool), flyouts).

public object? Model { get; }

Property Value

object

Result

Gets the result the overlay closed with (Closed of an IOverlayService overlay whose model called CloseAsync(object?)); null otherwise.

public object? Result { get; }

Property Value

object