INavigationMixins.RemovePopupPage(INavigation, T, 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> RemovePopupPage<T>(this INavigation navigation, T page, bool animate = true) where T : PopupPage
Summary: Removes a specific popup page from the navigation stack.
Type parameters
| Name | Description |
|---|---|
T | The type of popup page. Must derive from PopupPage. |
Parameters
| Name | Type | Description |
|---|---|---|
navigation | INavigation | The navigation service instance. |
page | T | The popup page to remove. |
animate = true | bool | if set to true, animates the popup removal. |
Returns: IObservable
Remarks
This method returns a Cold Observable created from an async operation. The popup removal 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.
Unlike PopPopup, this method removes a specific popup page from anywhere in the popup stack, not just the topmost one. This is useful for dismissing a particular popup when multiple popups are displayed, or when you need to remove a popup that is not at the top of the stack.