You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/maui/views/Popup.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,13 +181,13 @@ It is important to note that a `Popup` will be displayed inside `ContentPage` wh
181
181
182
182
| Action | Lifecycle event |
183
183
| ------ | --------------- |
184
-
| Show popup | Current `Page` will receive `OnDisappearing` and `OnNavigatingFrom`|
184
+
| Show popup | Current `Page` will receive `OnNavigatingFrom`, `OnDisappearing` and `OnNavigatedFrom`|
185
185
| Close popup | Previous `Page` will receive `OnAppearing` and `OnNavigatedTo`|
186
186
187
187
To determine if `OnNavigatedTo(NavigatedToEventArgs)` was called by dismissing `Popup`, you can use the `WasPreviousPageAToolkitPopup()` extension method:
To determine if`OnNavigatedFrom(NavigatedFromEventArgs)` was called by opening a `Popup`, you can use the `IsDestinationPageACommunityToolkitPopupPage()` extension method:
201
+
To determine whether `OnNavigatingFrom(NavigatingFromEventArgs)` or`OnNavigatedFrom(NavigatedFromEventArgs)` was called by opening a `Popup`, you can use the `IsDestinationPageACommunityToolkitPopupPage()` extension method:
> As per [https://github.com/dotnet/maui/issues/34073](https://github.com/dotnet/maui/issues/34073), OnNavigatingFrom is currently not working properly, but will be fixed in a near future
0 commit comments