summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/RootPages/TabbedNavPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/RootPages/TabbedNavPage.cs')
-rw-r--r--Xamarin.Forms.Controls/RootPages/TabbedNavPage.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/RootPages/TabbedNavPage.cs b/Xamarin.Forms.Controls/RootPages/TabbedNavPage.cs
new file mode 100644
index 00000000..e33d5aec
--- /dev/null
+++ b/Xamarin.Forms.Controls/RootPages/TabbedNavPage.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace Xamarin.Forms.Controls
+{
+ // TabbedPage -> NavigationPage
+ public class TabbedNavPage : MasterDetailPage
+ {
+ public TabbedNavPage ()
+ {
+ NavigationPage navpage = null;
+ navpage = new NavigationPage (new ContentPage {
+ Title = "Content0",
+ Content = new Button {
+ Text = "Button",
+ Command = new Command (() => {
+ Debug.WriteLine ("k");
+ navpage.PushAsync (new ContentPage () {Title = "Content1"});
+ })
+ }
+ }) {
+ Title = "Page0",
+ };
+
+ Children.add(navpage);
+ Children.add(new HomeButton ());
+ }
+ }
+} \ No newline at end of file