INavigationMixins.PopPopup(INavigation, bool) method¶
Defined in
Type: INavigationMixins
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> PopPopup(this INavigation navigation, bool animate = true)
Summary: Pops the topmost popup page from the navigation stack.
Parameters
| Name | Type | Description |
|---|---|---|
navigation | INavigation | The navigation service instance. |
animate = true | bool | if set to true, animates the popup dismissal. |
Returns: IObservable
Remarks
This method returns a Cold Observable created from an async operation. The popup dismissal 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 removes only the topmost popup from the popup navigation stack using a last-in, first-out (LIFO) approach. The popup stack is separate from the main MAUI navigation stack, allowing overlay content to be managed independently. If no popups are present in the stack, the operation completes without error.