title: Navigating between Multiple pages in Xamarin.forms?
body: <p>I have a content view and left navigation drawer which are commons on 4 pages and Content view contains 4 icons which navigates between 4 different pages. I want to keep my content view and left navigation drawer on all 4 pages.
  I create a Master details page and set Master page to Left navigation Drawer and i am changing the details page each time.
  I got the exception as android can navigate only page at a time while navigating between multiple pages.
  Following is my Rootpage and ContentView Page</p>
  
  <pre><code> public class RootPage : MasterDetailPage
      {
          LeftNavigationPanel menuPage;
          public RootPage(string detailSel)
          {
              menuPage = new LeftNavigationPanel(); //This is the left navigation class. rename later.
              Master = menuPage;
              if (detailSel.Equals(""))
              {
  
                  var detail = new NavigationPage(new Tabpage());
                  Detail = detail; //homepage
                  detail.Icon = "leftnav.png";
                  App.navigation = detail.Navigation;
              }
              else if (detailSel.Equals("1"))
              {
  
                  var detail = new NavigationPage(new Post());
                  Detail = detail; //homepage
                 detail.Icon = "leftnav.png";
                 App.navigation = detail.Navigation;
               //  System.Diagnostics.Debug.WriteLine("page1: " + Navigation.NavigationStack[Navigation.NavigationStack.Count-1]);
  
              }
              else if (detailSel.Equals("2"))
              {
                  var detail = new NavigationPage(new TrackTabPage());
                  Detail = detail; //homepage
                  detail.Icon = "leftnav.png";
                  App.navigation = detail.Navigation;
                 // System.Diagnostics.Debug.WriteLine("page1: " + Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]);
  
              }
              }
      }
  </code></pre>
  
  <p>ContentView</p>
  
  <pre><code>public partial class HomeContentView : ContentView
      {
          public HomeContentView()
          {
              InitializeComponent();
          }
          private async void read_click(Object sender, EventArgs e)
          {
              if (!((Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]) is Tabpage))
              {
  
                  //await Navigation.PopAsync();
                  await Navigation.PushAsync(new RootPage(""));
                  // this.Navigation.PopAsync();
              }
          }
          private async void post_click(Object sender, EventArgs e)
          {
              if (!((Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]) is Post))
              {
                  System.Diagnostics.Debug.WriteLine("page: "+ Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]);
                //  await Navigation.PopAsync();
                  await Navigation.PushAsync(new RootPage("1"));
  
  
              }
          }
          private async void track_click(Object sender, EventArgs e)
          {
              if (!((Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]) is TrackTabPage))
              {
                  System.Diagnostics.Debug.WriteLine("page: " + Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]);
                //  await Navigation.PopAsync();
                  await Navigation.PushAsync(new RootPage("2"));
              }
          }
          private void play_click(Object sender, EventArgs e) { }
      }
  </code></pre>