summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/CoreGalleryPages/FrameCoreGalleryPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/CoreGalleryPages/FrameCoreGalleryPage.cs')
-rw-r--r--Xamarin.Forms.Controls/CoreGalleryPages/FrameCoreGalleryPage.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/CoreGalleryPages/FrameCoreGalleryPage.cs b/Xamarin.Forms.Controls/CoreGalleryPages/FrameCoreGalleryPage.cs
new file mode 100644
index 00000000..aa24172f
--- /dev/null
+++ b/Xamarin.Forms.Controls/CoreGalleryPages/FrameCoreGalleryPage.cs
@@ -0,0 +1,36 @@
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+ internal class FrameCoreGalleryPage : CoreGalleryPage<Frame>
+ {
+ // TODO
+ protected override bool SupportsFocus
+ {
+ get { return false; }
+ }
+
+ protected override void InitializeElement (Frame element)
+ {
+ element.HeightRequest = 50;
+ element.WidthRequest = 100;
+ element.OutlineColor = Color.Olive;
+ }
+
+ protected override void Build (StackLayout stackLayout)
+ {
+ base.Build (stackLayout);
+
+ var hasShadowContainer = new StateViewContainer<Frame> (Test.Frame.HasShadow, new Frame { HasShadow = true });
+ var outlineColorContainer = new StateViewContainer<Frame> (Test.Frame.OutlineColor, new Frame { OutlineColor = Color.Teal, });
+ var viewContainer = new StateViewContainer<Frame> (Test.Frame.OutlineColor, new Frame {
+ OutlineColor = Color.Teal,
+ Content = new Label { Text = "I am a frame" }
+ });
+
+ Add (hasShadowContainer);
+ Add (outlineColorContainer);
+ Add (viewContainer);
+ }
+ }
+} \ No newline at end of file