Shell showing Modal pages

RogerSchmidlinRogerSchmidlin CHUniversity ✭✭✭

I would like to use modal pages the same as I use GoToAsync("modalpage?parameter=somevalue") navigation. Is this possible?

Tagged:

Best Answer

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    I would like to use modal pages the same as I use GoToAsync("modalpage?parameter=somevalue") navigation.

    It is impossible .

    GoToAsync("modalpage?parameter=somevalue") equals to Navigation.PushAsync(new modalpage());

    The default way is taking Hierarchical navigation not Modal Pages.

    If you want it , don't take the route way , use Navigation.PushModalAsync(new modalpage()); in code behind .

  • RogerSchmidlinRogerSchmidlin CHUniversity ✭✭✭

    @ColeX the you lose the nice feature of passing parameters. I don't want to use two different kind of navigation systems. It's nice to register all the pages in one place and then just navigate with a path and pass parameters. I also want that with Modal pages. Maybe Shell.Current.PushModal

Sign In or Register to comment.