I made an app with a Login screen to a MainView which is a MasterDetail and a Detail. It is working properly but the upper screen is bigger than normal, according to image; How do I set it to be the correct size?
HomeHereistheXAMLcodeforMainView,Master,andDetail.
MainView.xaml
<?xmlversion="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>
This is the code for xamls.
Codes in the Navigation MainView.CS:
public MainView()
{
InitializeComponent();
this.Master = new Master();
this.Detail = new NavigationPage(new DetailPage());
//this.BindingContext = new ViewModels.MainViewModel();
}