<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ProjetoWebForms.Views.MasterView"
xmlns:view="clr-namespace:ProjetoWebForms.Views"
Title="usuário">
<Frame OutlineColor="Silver"
VerticalOptions="CenterAndExpand"
Margin="15">
<StackLayout HorizontalOptions="Center" >
<Label Text="{Binding Nome}"></Label>
<BoxView HeightRequest="1" HorizontalOptions="Fill"></BoxView>
<Label Text="{Binding Email}"></Label>
<BoxView HeightRequest="1" HorizontalOptions="Fill"></BoxView>
<Button Text="Perfil"></Button>
</StackLayout>
</Frame>
</TabbedPage>
public partial class MasterView : TabbedPage
{
public MasterView (Usuario usuario)
{
InitializeComponent ();
this.BindingContext = new MasterViewModel(usuario);
}
}
Erro
Unhandled Exception:
System.InvalidCastException: Specified cast is not valid.