boa noite, fiz tudo conforme as aulas porem o app nao funciona, no caso ele nao cria o menu de hamburger e nem a pilha de navegação acho que é por que estou usando uma versão diferente do xamarin forms segue os codigos
MasterDetailView.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:view="clr-namespace:AppAlura.Views"
x:Class="AppAlura.Views.MasterDetailView">
<MasterDetailPage.Master>
<view:MasterView></view:MasterView>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<NavigationPage>
<x:Arguments>
<view:ListagemView></view:ListagemView>
</x:Arguments>
</NavigationPage>
</MasterDetailPage.Detail>
</MasterDetailPage>
MasterDetailView.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace AppAlura.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MasterView : ContentPage
{
public MasterView ()
{
InitializeComponent ();
}
}
}
MasterView.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="AppAlura.Views.MasterView"
Title="Master View">
<ContentPage.Content>
<StackLayout>
<Label Text="TESTE"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
OnStart do App.cs
protected override void OnStart ()
{
MessagingCenter.Subscribe<Usuario>(this, "SucessoLogin",
(usuario) =>
{
//MainPage = new NavigationPage(new ListagemView());
MainPage = new MasterDetailView();
});
}