question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open Popup onNavigatedTo

See original GitHub issue

Hi!

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:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dansiegelcommented, Mar 16, 2018

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 implement IPageLifecycleAware and push it when OnAppearing is fired.

1reaction
dansiegelcommented, Mar 13, 2018

can you send me a repro

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found