Xamarin Forms Master Detail Pages Tip

Sometimes you just end up banging your head on things and can’t see what is directly in front of you …

In my case, I was setting up an app with a MasterDetailPage. And no matter what I did with it, it kept crashing on start up. It didn’t matter if I put the Master content in a separate page or embedded all of the XAML right in the MasterDetailPage itself. Crash.

It ended up being the fact that the Title property on the ContentPage in the Master section needed to be filled.


<MasterDetailPage>

<!-- ... -->

<MasterDetailPage.Master>

<ContentPage Title="FILL THIS IN">

<!-- master section content goes here -->

</ContentPage>

</MasterDetailPage>

Now that I have written it down, I will remember that for next time.