Xamarin.Forms.Xaml.XamlParseException [closed]

0

I'm creating a Xamarin project for study, I have a MasterPage and inside it I have the code below:

I'm compiling for Android and I see that the problem is in this line:

xmlns:pages="clr-namespace:MyOrders.Pages;assembly=MyOrders"

If you want to download the project I'm using to study link

Error:

  

Xamarin.Forms.Xaml.XamlParseException: Position 11: 6. Type   MasterDetailpage not found in xmlns    link

<?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:pages="clr-namespace:MyOrders.Pages;assembly=MyOrders"
             x:Class="MyOrders.Pages.MasterPage">


  <MasterDetailpage.Master>

    <!--menu da aplicação-->
    <pages:MenuPage>

    </pages:MenuPage>

  </MasterDetailpage.Master>



    <MasterDetailPage.Detail>

      <!--navegação da aplicação-->
      <NavigationPage x:Name="Navigator">

        <x:Arguments>
          <!--corpo da aplicação-->
          <pages:MainPage>

          </pages:MainPage>

        </x:Arguments>

      </NavigationPage>

    </MasterDetailPage.Detail>

</MasterDetailPage>

In the .cs code I have:

namespace MyOrders.Pages
{
    public partial class MasterPage : MasterDetailPage
    {
        public MasterPage()
        {
            InitializeComponent();
        }


        protected override void OnAppearing()
        {
            base.OnAppearing();
            App.Navigator = this.Navigator;
        }

    }
}
    
asked by anonymous 24.08.2016 / 19:16

1 answer

1

MasterDetailpage is with the 'p' lowercase. The right one would be MasterDetailPage with a capital 'P':)

    
13.03.2017 / 19:04