summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/RootPages/CaseTenPage.cs
blob: 98527c46ad39980ce4e3d088b1fce1e334c0bfa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;

namespace Xamarin.Forms.Controls
{
	// May not behave
	// NavigationPage with multiple tabbed pages	
	public class CaseTenPage : MasterDetailPage 
	{
		public CaseTenPage () 
		{
			var btn = new Button {Text = "Click Me"};
			btn.Clicked += (sender, args) => btn.Navigation.PushModalAsync (new NavigationPage (new ContentPage ()));	
			
			var detail = new ContentPage {Content = btn};

			NavigationPage.SetHasNavigationBar (detail, false);
			
			Master = new ListPage (){Title = "Master"};
			Detail = detail;
		}
	}
}