因此,当我将一个页面推到另一个页面上时:
Shell.Current.Navigation.PushAsync(new XampelPage());
是否可以在新页面中看到将其推送到那里的页面?例如,如果背景是透明的,有没有办法在背景中显示它?
因此,当我将一个页面推到另一个页面上时:
Shell.Current.Navigation.PushAsync(new XampelPage());
是否可以在新页面中看到将其推送到那里的页面?例如,如果背景是透明的,有没有办法在背景中显示它?
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.
首先,对于 Shell 堆栈,当从 Shell 视觉层次结构导航到路由时,不会创建导航堆栈。但是,当导航到不在 Shell 视觉层次结构中的页面时,会创建一个导航堆栈。
是否可以在新页面中看到将其推送到那里的页面?例如,如果背景是透明的,有没有办法在背景中显示它?
您可以尝试使用 CarouselView 进行模拟。有关 CarouselView 的更多信息,请参阅下面的链接。 https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/carouselview/interaction