summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/RootPages/RootNavigationManyTabbedPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/RootPages/RootNavigationManyTabbedPage.cs')
-rw-r--r--Xamarin.Forms.Controls/RootPages/RootNavigationManyTabbedPage.cs63
1 files changed, 63 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/RootPages/RootNavigationManyTabbedPage.cs b/Xamarin.Forms.Controls/RootPages/RootNavigationManyTabbedPage.cs
new file mode 100644
index 00000000..fdce27d1
--- /dev/null
+++ b/Xamarin.Forms.Controls/RootPages/RootNavigationManyTabbedPage.cs
@@ -0,0 +1,63 @@
+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 RootNavigationManyTabbedPage : NavigationPage
+ {
+ public RootNavigationManyTabbedPage (string hierarchy)
+ {
+ AutomationId = hierarchy + "PageId";
+
+ var content = new TabbedPage {
+ Children = {
+ new ContentPage {
+ Title = "Page 1",
+ Content = new SwapHierachyStackLayout (hierarchy)
+ },
+ new ContentPage {
+ Title = "Page 2",
+ Content = new Label {
+ Text = "Page 2"
+ }
+ },
+ new ContentPage {
+ Title = "Page 3",
+ Content = new Label {
+ Text = "Page 3"
+ }
+ },
+ new ContentPage {
+ Title = "Page 4",
+ Content = new Label {
+ Text = "Page 4"
+ }
+ },
+ new ContentPage {
+ Title = "Page 5",
+ Content = new Label {
+ Text = "Page 5"
+ }
+ },
+ new ContentPage {
+ Title = "Page 6",
+ Content = new Label {
+ Text = "Page 6"
+ }
+ },
+
+ new ContentPage {
+ Title = "Go Home",
+ },
+ }
+ };
+ PushAsync (content);
+ }
+ }
+} \ No newline at end of file