I am trying to add a simple Master Detail page to an existing Xamarin application. Here is the announcement of MasterDetailPage
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:pages="clr-namespace:MyCareManager.XamForms.Pages;assembly=MyCareManager.XamForms" x:Class="MyCareManager.XamForms.Pages.SettingsPage"> <MasterDetailPage.Master> <ContentPage Title="This is the test master page"></ContentPage> </MasterDetailPage.Master> <MasterDetailPage.Detail> <NavigationPage> <x:Arguments> <ContentPage Title="This is a view"></ContentPage> </x:Arguments> </NavigationPage> </MasterDetailPage.Detail> </MasterDetailPage>
However, when I launch the application, I get the following error when navigating the page:
The master and part must be installed before adding the MasterDetailPage to the Container
I assume this is due to autofac, which is used as an IOC container in the application, but havent been able to drag a finger on it. Has anyone else experienced this?
source share