1

This is the code I have written to create the Master Detail Page:
Please check it out

<?xml version="1.0" encoding="utf-8" ?>
    <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="DemoApp.MenuPage" xmlns:local="clr-namespace:DemoApp.Views" MasterBehavior="Default">
       <MasterDetailPage.Master>
          <ContentPage Title="MenuPage" Icon="menuIcon.png" Padding="0,50,0,0">
             <ContentPage.Content>
                <StackLayout VerticalOptions="Start">
                   <Button Text="Home" />
                   <Button Text="Login" />
                   <Button Text="Logout" />
                   <Button Text="Exit" />
                </StackLayout>
             </ContentPage.Content>
          </ContentPage>
       </MasterDetailPage.Master>
       <MasterDetailPage.Detail>
          <local:Login/>
       </MasterDetailPage.Detail>
    </MasterDetailPage>
Top Systems
  • 951
  • 12
  • 24
  • Possible duplicate of [Hamburger Menu Xamarin Forms (MasterDetailPage)](https://stackoverflow.com/questions/49169049/hamburger-menu-xamarin-forms-masterdetailpage) – FreakyAli Jun 21 '19 at 12:20

2 Answers2

2

From Xamarin 4.0, this MasterDetailPage feature can implemented much easier using Shell. David has made a video on showing how to use Shell. His Youtube video

0

I've checked your code in a plain project and no errors so far, to check further the Detail page code would be needed. I mean the content of

   <MasterDetailPage.Detail>
      <local:Login/>
   </MasterDetailPage.Detail>
gp55
  • 1
  • 1