How to push a content view on top of another content view
I have a content page that hosts a top view and a bottom content view. The top view should stay fixed. Based on the users' choice, another content view should be added on top of the existing bottom view. I cannot find a push function that can achieve this. The push functionality seems to only exist for content pages.
Yes, there is a
Navigation, I'm afraid it isn't suitable for this scenario. If you just want to add a view, you can use
layout.Children.Add(newView). Maybe you can implement a view and use the property of
IsVisibleto display or hide. You can also customize a popup view , this thread maybe could give you some ideas.
Sign in to comment
@Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) Thank you for the info. I eventually decided to use ContentPage, but still added the same top view for each page that I need to push on to stack. This is because the behavior is like pushing onto and popping off a stack. ContentView cannot help me achieve this.
You're welcome. You can try to use ContentPage, wish it works for you.