title: Master Detail Page Navigation on Xamarin Forms
body: <p>I created a Master Detail Page and am tying to implement the part where it navigates to a specific page when one of the side tabs are tapped. However, it keeps going back to the default detail page which is a plain content page. </p>
  
  <pre><code>    public class HomePage : MasterDetailPage
  {
      string[] sideTabs = { "My Account", "Charity A", "Charity B", "Charity C", "Charity D", "Support", "Logout" };
      ListView listView = new ListView();
      ContentPage master = new ContentPage();
      StackLayout masterStack = new StackLayout();
  
      public HomePage()
      {
          NavigationPage.SetHasNavigationBar(this,false);
  
          //creating content page
          listView.Header = "     ";
          listView.ItemsSource = sideTabs;
          listView.SeparatorColor = Color.Transparent;
          listView.BackgroundColor = Color.Pink;
          masterStack.Children.Add(listView);
          master.Title = "Menu";
          master.Content = masterStack;
  
          //assigning master detail page properties
          Master = master;
          Detail = new NavigationPage(new ContentPage ());
  
          listView.ItemTapped += (sender, args) =&gt;
          {
              // Set the BindingContext of the detail page.
              switch (args.Item)
              {
                  case "My Account": Detail.BindingContext = new LoginPage (); break;
                  default : Detail.BindingContext = args.Item; break;
              }
              // Show the detail page.
              IsPresented = false;
          };
      }
  }
  </code></pre>