summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs')
-rw-r--r--Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs
index 11b5d8c4..b8cdb2c3 100644
--- a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs
+++ b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs
@@ -8,7 +8,7 @@ namespace Xamarin.Forms.Controls.GalleryPages.PlatformSpecificsGalleries
{
Children.Add(CreateFirstPage(restore));
Children.Add(CreateSecondPage());
- WindowsPlatformSpecificsGalleryHelpers.AddToolBarItems(this);
+ Children.Add(CreateThirdPage());
}
ContentPage CreateFirstPage(ICommand restore)
@@ -40,6 +40,16 @@ namespace Xamarin.Forms.Controls.GalleryPages.PlatformSpecificsGalleries
return page;
}
+ NavigationPage CreateThirdPage()
+ {
+ var content = CreateSecondPage();
+ content.Title = "Content in a Nav Page";
+ var navpage = new NavigationPage(content);
+ navpage.Title = "Nav Page";
+ WindowsPlatformSpecificsGalleryHelpers.AddToolBarItems(navpage);
+ return navpage;
+ }
+
static Page CreateSecondPage()
{
var cp = new ContentPage { Title = "Second Content Page" };