summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/RootPages/RootTabbedNavigationContentPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/RootPages/RootTabbedNavigationContentPage.cs')
-rw-r--r--Xamarin.Forms.Controls/RootPages/RootTabbedNavigationContentPage.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/RootPages/RootTabbedNavigationContentPage.cs b/Xamarin.Forms.Controls/RootPages/RootTabbedNavigationContentPage.cs
new file mode 100644
index 00000000..3f14a07f
--- /dev/null
+++ b/Xamarin.Forms.Controls/RootPages/RootTabbedNavigationContentPage.cs
@@ -0,0 +1,46 @@
+´╗┐using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Resources;
+using System.Text;
+using System.Threading.Tasks;
+#if HAVE_OPENTK
+using OpenTK.Graphics;
+using OpenTK.Graphics.ES20;
+#endif
+
+namespace Xamarin.Forms.Controls
+{
+ public class RootTabbedNavigationContentPage : TabbedPage
+ {
+ public RootTabbedNavigationContentPage (string hierarchy)
+ {
+ AutomationId = hierarchy + "PageId";
+
+ var tabOne = new NavigationPage (new ContentPage {
+ Title = "Nav title",
+ Content = new SwapHierachyStackLayout (hierarchy)
+ }) { Title = "Tab 123", };
+
+ var tabTwo = new ContentPage {
+ Title = "Testing 345",
+ Content = new StackLayout {
+ Children = {
+ new Label { Text = "Hello" },
+ new AbsoluteLayout {
+ BackgroundColor = Color.Red,
+ VerticalOptions = LayoutOptions.FillAndExpand,
+ HorizontalOptions = LayoutOptions.FillAndExpand
+ },
+ new Button { Text = "Button" },
+ }
+ }
+ };
+
+ Children.Add (tabOne);
+ Children.Add (tabTwo);
+ }
+ }
+}
+