FreshMvvm icon indicating copy to clipboard operation
FreshMvvm copied to clipboard

FreshMvvm PushNewNavigationServiceModal not working

Open B0SS opened this issue 8 years ago • 3 comments

I'm trying to change from FreshNavigationContainer to FreshMasterDetailNavigationContainer when the user is loggedin within the method SuccessfulLogin by using freshMvvm method PushNewNavigationServiceModal but nothing is happening.

    public void SuccessfulLogin()
    {
        App.IsLoggedIn = true;
        var masterDetailNav = new FreshMasterDetailNavigationContainer();
        masterDetailNav.Init("Menu");
        masterDetailNav.AddPage<ProfilePageModel>("Profile", null);
        CoreMethods.PushNewNavigationServiceModal(masterDetailNav);
    }

Edit : I just noticed that after using this method navigation isn't working anymore.

B0SS avatar Jun 17 '17 17:06 B0SS

If possible can you give more details about the complete navigation setup you have or provide a sample, email me directly if you like. This method works for the majority of cases but I'm not sure why it doesn't work for you.

rid00z avatar Jun 23 '17 01:06 rid00z

I'm experiencing a similar issue. All inits fire, and no errors crash the app but nothing navigates to a new tabbed page.

Were you guys able to resolve this?

var page = FreshPageModelResolver.ResolvePageModel<InitialLoginPageModel>(); var basicNavContainer = new FreshNavigationContainer(page); MainPage = basicNavContainer;

Then click something, fires command and pushes to another page:

await CoreMethods.PushPageModel<SignInPageModel>(null, false,true);

Then click sign in, fires command and do this:

var tabbedNavigation = new FreshTabbedNavigationContainer(); tabbedNavigation.AddTab<OnePageModel>("One", "one.png"); tabbedNavigation.AddTab<TwoPageModel>("Two", "two.png"); tabbedNavigation.AddTab<ThreePageModel>("Three", "three.png"); await CoreMethods.PushNewNavigationServiceModal(tabbedNavigation);

mjmostachetti avatar Aug 08 '17 19:08 mjmostachetti

Any word on this? Also just ran into the same problem. Much like above all inits fire but no navigation change.

I have a master detail view as main and I'm trying to get a tab view to appear after a listview item is clicked.

RuddyOne avatar May 17 '18 13:05 RuddyOne