Open Popup onNavigatedTo
See original GitHub issueHi!
It is possible to open a Popup when the page finishes to load (onNavigatedTo) ?
My page is opened like this:
NavigationService.NavigateAsync("NavigationPage/WelcomePage");
When it finishes load, I would like to popup a page to the user. I am doing this:
if (condition) { await _navigationService.NavigateAsync("WarningPopupPage"); }
This isn’t working…
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
When using in MasterDetail OnNavigatedTo is always ...
I just tested with the sample app in github and it's the same issue with just a single contentpage, Destroy is called when...
Read more >How to get a MAUI Community Toolkit Popup to show at ...
1 Answer 1 ... You can Subscribe to Loaded event of the ContentPage and show the popup from the from the event handler....
Read more >RadPopup doesn't close when navigating to new page
I have a RadPopup with buttons that navigate to new pages via shell navigation. When I click to navigate to the new page...
Read more >OnAppearing for WinUI's Page - Microsoft Q&A
The first OnNavigatedTo method will be fired when the page is loaded and the second OnNavigatingFrom method will be fired before the Page...
Read more >FAQ in Xamarin Popup (SfPopupLayout)
SfPopupLayout.IsOpen is a bindable property and hence can be binded to any property and based on its value the popup will open or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
looking at your code you’re trying to push the popup page before the page has been pushed onto the NavigationStack which is why you’re having problems.
You could try moving the Navigation to
OnNavigatedTo
which is triggered after the page is pushed onto the NavigationStack… or you could implementIPageLifecycleAware
and push it whenOnAppearing
is fired.can you send me a repro