Is there any way to place a NavigationPage root into a ContentView?

EmSantosEmSantos Member ✭✭

I currently Have a navigation tab at the bottom of my application and I would like this to be static. ( I am not using a "Tabbed Page").
My current tab code works as so:

        void Schedule_Tapped(object sender, System.EventArgs e)
        {
            var page = new Schedule();
            PlaceHolder.Content = page.Content;
        }
        void Messages_Tapped(object sender, System.EventArgs e)
        {
            var page = new Messages();
            PlaceHolder.Content = page.Content;
        }

I would like to Place NavigationPage to begin the root of the ContentView so that I can push and pop to the stack.
Here is an example of what I would like to see done.

        void Messages_Tapped(object sender, System.EventArgs e)
        {
            var page = new NavigationPage(new Messages());
            PlaceHolder.Content = page.Content;
        }

I Understand that I am unable to convert from type View to NavigationPage but is there a good way to approach this problem?
Thank you.

Sign In or Register to comment.