Skip to content

Instantly share code, notes, and snippets.

@wsrzx
Created August 3, 2015 18:31
Show Gist options
  • Save wsrzx/7fd2374f7a5d29952f55 to your computer and use it in GitHub Desktop.
Save wsrzx/7fd2374f7a5d29952f55 to your computer and use it in GitHub Desktop.
Xamarin Forms MasterDetalPage XAML
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:view="clr-namespace:DemoApp.Views;assembly=DemoApp"
x:Class="DemoApp.Views.RootPage" Title="MasterDetailPage Demo">
<MasterDetailPage.Master>
<view:MainMenu />
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<view:HomePage />
</MasterDetailPage.Detail>
</MasterDetailPage>
<!-- Menu -->
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="DemoApp.Views.MainMenu">
<Label Text="Hello World" VerticalOptions="Center" HorizontalOptions="Center" />
</ContentPage>
<!-- Detail -->
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="DemoApp.Views.HomePage">
<Label Text="Hello World" VerticalOptions="Center" HorizontalOptions="Center" />
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment