Code Monkey home page Code Monkey logo

Comments (5)

rid00z avatar rid00z commented on August 20, 2024 2

@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 [email protected]

from freshmvvm.

rid00z avatar rid00z commented on August 20, 2024 1

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

www.xam-consulting.com

Blog: www.michaelridland.com

from freshmvvm.

jzhouw avatar jzhouw commented on August 20, 2024 1

@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?

from freshmvvm.

OpticNectar avatar OpticNectar commented on August 20, 2024

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.

JoshuaNovak919 avatar JoshuaNovak919 commented on August 20, 2024

@rid00z That seemed to have worked perfectly. Thanks!!

from freshmvvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.