summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/GalleryPages/MultiGallery.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/MultiGallery.cs')
-rw-r--r--Xamarin.Forms.Controls/GalleryPages/MultiGallery.cs58
1 files changed, 58 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/MultiGallery.cs b/Xamarin.Forms.Controls/GalleryPages/MultiGallery.cs
new file mode 100644
index 00000000..02ceab08
--- /dev/null
+++ b/Xamarin.Forms.Controls/GalleryPages/MultiGallery.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Xamarin.Forms.Controls
+{
+ public class MultiGallery : ContentPage
+ {
+ public MultiGallery ()
+ {
+ var button = new Button {Text = "Toggle Nav Bar"};
+ Content = new ScrollView {
+ Content = new StackLayout {
+ Children = {
+ button,
+ new Editor (),
+ new Entry (),
+ new Image {Source = ImageSource.FromFile ("cover1.jpg")},
+ new Label {Text = "Label"},
+ new ProgressBar (),
+ new ActivityIndicator (),
+ new Switch (),
+ new Stepper (),
+ new Slider (),
+ new ProgressBar (),
+ new ActivityIndicator (),
+ new Switch (),
+ new Stepper (),
+ new Slider ()
+ }
+ }
+ };
+
+ button.Clicked +=
+ (sender, args) => NavigationPage.SetHasNavigationBar (this, !NavigationPage.GetHasNavigationBar (this));
+
+ ToolbarItems.Add (new ToolbarItem ("Back", "bank.png", () => Navigation.PopAsync (), ToolbarItemOrder.Primary));
+ ToolbarItems.Add (new ToolbarItem ("It's", "bank.png", () => Navigation.PopAsync (), ToolbarItemOrder.Secondary));
+ ToolbarItems.Add (new ToolbarItem ("A", "bank.png", () => Navigation.PopAsync (), ToolbarItemOrder.Secondary));
+ ToolbarItems.Add (new ToolbarItem ("TARP!", "bank.png", () => Navigation.PopAsync (), ToolbarItemOrder.Secondary));
+ }
+
+ protected override void OnAppearing ()
+ {
+ Debug.WriteLine ("Appearing");
+ base.OnAppearing ();
+ }
+
+ protected override void OnDisappearing ()
+ {
+ Debug.WriteLine ("Disappearing");
+ base.OnDisappearing ();
+ }
+ }
+}