Xamarin.Forms.Xaml.Xamlparseexception

Asked

Viewed 116 times

0

I am creating a Xamarin project for study, I have a Masterpage and inside it I have the code below:

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

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

In case you want to download the project I’m using for study https://drive.google.com/file/d/0B-svO0-4L_-Nb3I3MVZpTndQWms/view?usp=sharing

Error:

Xamarin.Forms.Xaml.Xamlparseexception: Position 11:6. Type Masterdetailpage not found in xmlns http://xamarin.com/schemas/2014/forms

<?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 her code . Cs I have:

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


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

    }
}

1 answer

1

Masterdetailpage has the tiny p. The right one would be Masterdetailpage with a capital 'P' :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.