summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/GalleryPages/FrameGallery.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/FrameGallery.cs')
-rw-r--r--Xamarin.Forms.Controls/GalleryPages/FrameGallery.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/FrameGallery.cs b/Xamarin.Forms.Controls/GalleryPages/FrameGallery.cs
new file mode 100644
index 00000000..ee7c1822
--- /dev/null
+++ b/Xamarin.Forms.Controls/GalleryPages/FrameGallery.cs
@@ -0,0 +1,32 @@
+´╗┐using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Xamarin.Forms.Controls
+{
+ public class FrameGallery : ContentPage
+ {
+ readonly StackLayout _stack;
+
+ public FrameGallery ()
+ {
+ Content = _stack = new StackLayout { Padding = new Size (20, 20) };
+
+ //BackgroundColor = new Color (0.5, 0.5, 0.5);
+ BackgroundColor = Color.FromHex ("#8a2be2");
+ //BackgroundColor = Color.Aqua;
+
+ var frame = new Frame {
+ Content = new Button {
+ Text = "Framous!"
+ },
+ BackgroundColor = Device.OnPlatform (iOS: new Color (1), Android: new Color (0), WinPhone: new Color (0)),
+ VerticalOptions = LayoutOptions.FillAndExpand
+ };
+
+ _stack.Children.Add (frame);
+ }
+ }
+}