I am trying to use MasterDetailPage but what I can't figure out is how to integrate it with using the ViewFactory in the View Model.
I have seen examples with MasterDetailPage like here. They only use code behind with no xaml. I am trying to use xaml and put as much code as possible in the view model. I tried to bind to Detail in the xaml but got an error
MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="clr-namespace:Xamarin.Forms.Labs.Mvvm;assembly=Xamarin.Forms.Labs"
x:Class="VisionPortalUI.Views.HomeView"
Detail="{Binding detPage}"
I was thinking of a possibility would be to add a property to my view of type Page that I can bind to and then set Detail in the setter of that property. Would this work? Anybody have ideas on a better way to do this?