diff options
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGallery.cs')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGallery.cs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGallery.cs b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGallery.cs index 2907d9b7..dbfa554c 100644 --- a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGallery.cs +++ b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGallery.cs @@ -8,19 +8,23 @@ namespace Xamarin.Forms.Controls public PlatformSpecificsGallery() { - var mdpWindowsButton = new Button { Text = "Master Detail Page (Windows)" }; - var npWindowsButton = new Button { Text = "Navigation Page (Windows)" }; - var tbWindowsButton = new Button { Text = "Tabbed Page (Windows)" }; - var navpageiOSButton = new Button() { Text = "Navigation Page (iOS)" }; + var mdpiOSButton = new Button { Text = "MasterDetailPage (iOS)" }; + var mdpWindowsButton = new Button { Text = "MasterDetailPage (Windows)" }; + var npiOSButton = new Button() { Text = "NavigationPage (iOS)" }; + var npWindowsButton = new Button { Text = "NavigationPage (Windows)" }; + var tbiOSButton = new Button { Text = "TabbedPage (iOS)" }; + var tbWindowsButton = new Button { Text = "TabbedPage (Windows)" }; var viselemiOSButton = new Button() { Text = "Visual Element (iOS)" }; var appAndroidButton = new Button() { Text = "Application (Android)" }; var tbAndroidButton = new Button { Text = "TabbedPage (Android)" }; var entryiOSButton = new Button() { Text = "Entry (iOS)" }; + mdpiOSButton.Clicked += (sender, args) => { SetRoot(new MasterDetailPageiOS(new Command(RestoreOriginal))); }; mdpWindowsButton.Clicked += (sender, args) => { SetRoot(new MasterDetailPageWindows(new Command(RestoreOriginal))); }; + npiOSButton.Clicked += (sender, args) => { SetRoot(NavigationPageiOS.Create(new Command(RestoreOriginal))); }; npWindowsButton.Clicked += (sender, args) => { SetRoot(new NavigationPageWindows(new Command(RestoreOriginal))); }; + tbiOSButton.Clicked += (sender, args) => { SetRoot(new TabbedPageiOS(new Command(RestoreOriginal))); }; tbWindowsButton.Clicked += (sender, args) => { SetRoot(new TabbedPageWindows(new Command(RestoreOriginal))); }; - navpageiOSButton.Clicked += (sender, args) => { SetRoot(NavigationPageiOS.Create(new Command(RestoreOriginal))); }; viselemiOSButton.Clicked += (sender, args) => { SetRoot(new VisualElementiOS(new Command(RestoreOriginal))); }; appAndroidButton.Clicked += (sender, args) => { SetRoot(new ApplicationAndroid(new Command(RestoreOriginal))); }; tbAndroidButton.Clicked += (sender, args) => { SetRoot(new TabbedPageAndroid(new Command(RestoreOriginal))); }; @@ -29,7 +33,7 @@ namespace Xamarin.Forms.Controls Content = new StackLayout { - Children = { mdpWindowsButton, npWindowsButton, tbWindowsButton, navpageiOSButton, viselemiOSButton, appAndroidButton, entryiOSButton } + Children = { mdpiOSButton, mdpWindowsButton, npWindowsButton, tbiOSButton, tbWindowsButton, viselemiOSButton, appAndroidButton, tbAndroidButton, entryiOSButton } }; } |