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.

Calling PushPageModel outside of page model

See original GitHub issue

How can I call PushPageModel or something similar outside of a page model? There are times I need to call it from a menu that has it’s own View Model that does not inherit and cannot inherit from FreshBasePageModel. I’m using http://xam-consulting.com/slideoverkit-xamarin-forms/ in case you are wondering.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rid00zcommented, Feb 21, 2016

@OpticNectar

It really depends on your overall navigation.

var navService = FreshMvvm.FreshIOC.Container.Resolve<IFreshNavigationService> (FreshMvvm.Constants.DefaultNavigationServiceName); var page = FreshPageModelResolver.ResolvePageModel<MyPageModel> (); navService.PushPage (page, null);

@OpticNectar please feel free to email me michael@xam-consulting.com

1reaction
jzhouwcommented, Nov 3, 2016

@rid00z I have similar question like the one in this thread:

  1. my app main page is a MasterDetail which uses FreshMvvmMasterDetailNavigation already
  2. when app not running, and a push notification coming, I want the app to open a specific Detail page still with the Master menu at right side as normal app launch does

To handle the push on app launching, I need to check the push data to decide which page to open, so there would be some work in iOS’s AppDelegate.FinishedLaunching, how can I implement this with FreshMvvm and/or forms navigation service?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the difference between PushPageModel and ...
1 Answer. In FreshMvvm PushPageModelWithNewNavigation is starting new NavigationStack unlike PushPageModel . If you use ...
Read more >
Pass Data Between ViewModels in FreshMvvm for Xamarin ...
... Pass Data Back to Calling ViewModel 16:16 - Outro Video edited with ... #MVVM #MVVMFramework #PassData # PageModel #ViewModel # Page #View....
Read more >
FreshMvvm Basic Navigation Concepts in Xamarin.Forms
... of Styling 15:56 - Navigate with Modal Pages 20:21 - Outro Video edited ... #MVVMFramework #Navigation # PageModel #ViewModel # Page #View....
Read more >
Waiting On A Modal Page Using FreshMvvm - Xamarin.Forms
Hi All, My application uses FreshMvvm for model-first navigation throughout. I have an editor page for data entry which is normally displayed non-modally ......
Read more >
Using MVVM in your Xamarin.Forms app
You can navigate to another PageModel by executing: CoreMethods.PushPageModel<AnotherPageModel>();. There are some overloads as ...
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