diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2017-01-03 04:25:24 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-01-03 11:25:24 +0000 |
commit | 8c5fd096945301a2db0d85baf77ce46812a8d89f (patch) | |
tree | 348002d9c1c24520231510abf4b0fb77458eda24 /Xamarin.Forms.Controls | |
parent | ee608ba46642f735d723ac1d00b7f87298b949f6 (diff) | |
download | xamarin-forms-8c5fd096945301a2db0d85baf77ce46812a8d89f.tar.gz xamarin-forms-8c5fd096945301a2db0d85baf77ce46812a8d89f.tar.bz2 xamarin-forms-8c5fd096945301a2db0d85baf77ce46812a8d89f.zip |
Make UWP toolbar display rules consistent with other platforms (#638)
Diffstat (limited to 'Xamarin.Forms.Controls')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageWindows.cs | 12 |
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" }; |