Comments (5)
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 [email protected]
from freshmvvm.
So you might need to get the navigation service out of the IOC container
and push it yourself?
It kind of depends. what type of navigation do you have?
On Friday, 19 February 2016, OpticNectar [email protected] wrote:
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.—
Reply to this email directly or view it on GitHub
#43.
Michael Ridland | Technical Director | Xamarin MVP
XAM Consulting - Mobile Technology Specialists
Blog: www.michaelridland.com
from freshmvvm.
@rid00z I have similar question like the one in this thread:
- my app main page is a MasterDetail which uses FreshMvvmMasterDetailNavigation already
- 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?
from freshmvvm.
Is there an example of how to do that somewhere? I haven't worked with IOC containers much, and i'm not sure how to go about that.
from freshmvvm.
@rid00z That seemed to have worked perfectly. Thanks!!
from freshmvvm.
Related Issues (20)
- CoreMethods PopPageModel() throws exception when page contains CarouselView HOT 1
- using <Path> in XAML throws TinyIoCResolutionException
- ReverseInit not called HOT 1
- XF 5 MasterDetailPage to FlyoutPage HOT 1
- Correct way to handle Button Clicks and updating the model HOT 1
- Hamburger Menu is displayed in the Content Page in Landscape Orientation - Android HOT 1
- Project status and plans for .NET MAUI HOT 10
- Page not loaded properly for PopPageModel using navigation stack in FreshMVVM Xamarin Forms Android HOT 1
- SetBackButtonTextProperty doesn't work HOT 1
- How to intercept software back button press on FreshMVVM PageModel? HOT 3
- v4.0 Release notes?
- SIGABRT: Popped page does not appear on top of current navigation stack, please file a bug. IOS Xamarin HOT 2
- Can not run sample App in VS2019
- Fody Propertychanged on Viewmodels
- PushPageModel does not work after the app ran in the background
- Implement same bevaviour as at PRISM IDestructible HOT 4
- Update view after update bind property in ViewModel
- Cannot resolve IFreshNavigationService from a page loaded from Notifcation tap HOT 1
- FreshMVVM MAUI support
- Issue 'NavGraph cannot be null' with FreshMasterDetailNavigationContainer since MAUI 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freshmvvm.