summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/RootPages/CaseTenPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/RootPages/CaseTenPage.cs')
-rw-r--r--Xamarin.Forms.Controls/RootPages/CaseTenPage.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/RootPages/CaseTenPage.cs b/Xamarin.Forms.Controls/RootPages/CaseTenPage.cs
new file mode 100644
index 00000000..98527c46
--- /dev/null
+++ b/Xamarin.Forms.Controls/RootPages/CaseTenPage.cs
@@ -0,0 +1,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;
+ }
+ }
+} \ No newline at end of file