Skip to content

IPopupNavigationMixins.PushPopup(IPopupNavigation, T, bool) method

Defined in

Type: IPopupNavigationMixins Namespace: ReactiveUI.Maui.Plugins.Popup Assembly: ReactiveUI.Maui.Plugins.Popup.dll

Applies to

net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net9.0-windows10.0.19041, netstandard2.1, net471

public static IObservable<Unit> PushPopup<T>(this IPopupNavigation service, T page, bool animate = true) where T : PopupPage

View source

Summary: Pushes a popup page onto the navigation stack.

Type parameters

NameDescription
TThe type of popup page. Must derive from PopupPage.

Parameters

NameTypeDescription
serviceIPopupNavigationThe popup navigation service instance.
pageTThe popup page to display.
animate = trueboolif set to true, animates the popup presentation.

Returns: IObservable -- An observable sequence that, when subscribed to, executes the navigation operation and emits a single Unit value upon completion.

Remarks

This method returns a Cold Observable created from an async operation. The popup presentation operation does not begin until the observable is subscribed to. Each subscription triggers a new execution of the async operation. The observable completes after emitting a single value.

This method adds a new popup to the top of the popup navigation stack. The popup stack is maintained separately from the main MAUI navigation stack (NavigationStack), allowing popups to be displayed as overlays on top of the current page without navigating away from it. Multiple popups can be stacked, and they are managed in a last-in, first-out (LIFO) order.