2
I made an app with a Login screen to a Mainview that is a Masterdetail and a Detail. It is working correctly but the top screen is larger than normal, as per image; as I set it to be the correct size?
 
Follow Mainview, Master and Detail XAML code.
Mainview.xaml
<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:MVVMApp"
             x:Class="MVVMApp.Views.MainView">
</MasterDetailPage>
Master xaml.
 <?xml version="1.0" encoding="utf-8" ?>
    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MVVMApp.Views.Master"
             BackgroundColor="Blue"
             Title="ListaViagem"
             Icon="Menu.png">
     <StackLayout Padding="20">
        <Label Text="Menu Lateral"></Label>
     </StackLayout>
   </ContentPage>
Detail.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         x:Class="MVVMApp.Views.Detail"
         Title="Detalhe">
</ContentPage>
These are the codes of the xamls.
Navigation codes in Mainview.CS:
        public MainView()
    {
        InitializeComponent();
        this.Master = new Master();
        this.Detail = new NavigationPage(new DetailPage());
        //this.BindingContext = new ViewModels.MainViewModel();
    }
Put your shampooing code on, please.
– Douglas Öak
I posted the code of the Xamls as requested.
– Alexsandro Teixeira
I noticed that you are adding the masterpage and detailpage through C#. When you add Contentpage that represents Detailpage, try to put it inside a Navigation page. Example: Detail = new Navigationpage(new Detailpage());
– Douglas Öak
But that’s when I’m gonna do the navigation?
– Alexsandro Teixeira