Skip to content

Instantly share code, notes, and snippets.

@ctacke
Created August 3, 2016 21:18
Show Gist options
  • Save ctacke/3cfdcf4081e63b17bf6bf58fef1c75ba to your computer and use it in GitHub Desktop.
Save ctacke/3cfdcf4081e63b17bf6bf58fef1c75ba to your computer and use it in GitHub Desktop.
Embedding Multiple Xamarin ContentPages into a single XAML file
<?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:common="clr-namespace:NavigationExample.Views"
x:Class="NavigationExample.Views.HomeWrapView"
Title="Page Title">
<MasterDetailPage.Master>
<common:MenuView x:Name="Menu" Title="Menu Title" />
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<common:HomeView x:Name="Home" />
</MasterDetailPage.Detail>
</MasterDetailPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment