summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Frame.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/Frame.cs')
-rw-r--r--Xamarin.Forms.Core/Frame.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Frame.cs b/Xamarin.Forms.Core/Frame.cs
index 01f409e4..a298c0f0 100644
--- a/Xamarin.Forms.Core/Frame.cs
+++ b/Xamarin.Forms.Core/Frame.cs
@@ -1,18 +1,22 @@
+using System;
using Xamarin.Forms.Platform;
namespace Xamarin.Forms
{
[ContentProperty("Content")]
[RenderWith(typeof(_FrameRenderer))]
- public class Frame : ContentView
+ public class Frame : ContentView, IElementConfiguration<Frame>
{
public static readonly BindableProperty OutlineColorProperty = BindableProperty.Create("OutlineColor", typeof(Color), typeof(Frame), Color.Default);
public static readonly BindableProperty HasShadowProperty = BindableProperty.Create("HasShadow", typeof(bool), typeof(Frame), true);
+ readonly Lazy<PlatformConfigurationRegistry<Frame>> _platformConfigurationRegistry;
+
public Frame()
{
Padding = new Size(20, 20);
+ _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<Frame>>(() => new PlatformConfigurationRegistry<Frame>(this));
}
public bool HasShadow
@@ -26,5 +30,10 @@ namespace Xamarin.Forms
get { return (Color)GetValue(OutlineColorProperty); }
set { SetValue(OutlineColorProperty, value); }
}
+
+ public IPlatformElementConfiguration<T, Frame> On<T>() where T : IConfigPlatform
+ {
+ return _platformConfigurationRegistry.Value.On<T>();
+ }
}
} \ No newline at end of file