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.

CoreMethods.PopToRoot not working in UWP

See original GitHub issue

Calling await CoreMethods.PopToRoot(true/false) does nothing in UWP Project. For the moment any workaround would be very appreciated. Thx for your great work!

EDIT: I’m using FreshMvvm version 2.0.1 and Xamarin.Forms 2.1.0.6529 EDIT 2: Now, Xamarin Forms to 2.2.0.31 and FreshMvvm to 2.1.0, same problem

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jessejiang0214commented, Jun 9, 2016

Hi Marcorn,

This is a bug of Xamarin.Forms. https://bugzilla.xamarin.com/show_bug.cgi?id=31809 We just call Xamarin.Forms.NavigationPage.PopToRootAsync in FreshMvvm, so it cannot work currently. But It will be fixed in the future.

0reactions
joristackaertcommented, Jan 3, 2020

await CoreMethods.PopPageModel(true, true); await CoreMethods.PopToRoot(true);

if your Page is a modal then you should remove the modal first then popToRoot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xamarin.forms - How to navigate back from ...
I use the following code to start a freshhmvvm master-detail page from a list in a navigation page. This works fine, but the...
Read more >
FreshMVVM and SwitchOutRootNavigation - Xamarin.Forms
After login, I call: CoreMethods.SwitchOutRootNavigation(NavigationStacks.MainAppStack); await CoreMethods.PushPageModel(); And it works. I'm back on Page1 and ...
Read more >
Display popup only once in the app - Xamarin.Forms
I am trying to modify the style of the AppBarButton, but I have got no luck in trying to override the base style...
Read more >
Navigation in UWP app - Microsoft Q&A
I am trying to get a MainPage.XAML (Page) to navigate to a Page1.XAML (Content Page) in my UWP app.
Read more >
Page.OnNavigatedFrom(NavigationEventArgs) Method
While it seems natural to use OnNavigatedFrom to unregister event handlers that were registered in OnNavigatedTo, this can lead to problems if your...
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