Home > Mobile >  Is it possible to see the page below in an Xamarin Shell Stack?
Is it possible to see the page below in an Xamarin Shell Stack?

Time:09-27

So when I push an Page over the other:

Shell.Current.Navigation.PushAsync(new XampelPage());

is it possible in the new Page to see the Page that pushed it there? For example if the Background is transparent, is there an way to show it in the Background?

CodePudding user response:

I highly doubt that you could see the other page if you push another and set it's background color to Transparent.

You could achieve that using a page with a Grid or absolute layout.These layouts allow you "stack" components

Then you add the new view as a children and start forming the different layers. It would be like a dialog inside a page.

CodePudding user response:

First, for the Shell Stack, when a route from the Shell visual hierarchy is navigated to, a navigation stack isn't created. However, when a page that's not in the Shell visual hierarchy is navigated to, a navigation stack is created.

is it possible in the new Page to see the Page that pushed it there? For example if the Background is transparent, is there an way to show it in the Background?

You could try to use CarouselView to simulate. For more information about the CarouselView, please refer to the link below. https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/carouselview/interaction

  • Related