summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorAndrei N <nitescua@yahoo.com>2016-10-09 07:52:38 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-11-15 19:56:03 (GMT)
commit4554e822e3cf5ae71724a8fc89d1a8728118f060 (patch)
treef7befe212762dd6af5e4d8ae9c90a606c5ee7fc6 /Xamarin.Forms.Core
parent0cc2fd2b6742a29fedc03de942801cc14ff6b499 (diff)
downloadxamarin-forms-4554e822e3cf5ae71724a8fc89d1a8728118f060.zip
xamarin-forms-4554e822e3cf5ae71724a8fc89d1a8728118f060.tar.gz
xamarin-forms-4554e822e3cf5ae71724a8fc89d1a8728118f060.tar.bz2
Added CornerRadius property To Frame control
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Frame.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/Frame.cs b/Xamarin.Forms.Core/Frame.cs
index a298c0f..bb35f14 100644
--- a/Xamarin.Forms.Core/Frame.cs
+++ b/Xamarin.Forms.Core/Frame.cs
@@ -11,6 +11,8 @@ namespace Xamarin.Forms
public static readonly BindableProperty HasShadowProperty = BindableProperty.Create("HasShadow", typeof(bool), typeof(Frame), true);
+ public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(float), typeof(Frame), -1.0f);
+
readonly Lazy<PlatformConfigurationRegistry<Frame>> _platformConfigurationRegistry;
public Frame()
@@ -31,6 +33,12 @@ namespace Xamarin.Forms
set { SetValue(OutlineColorProperty, value); }
}
+ public float CornerRadius
+ {
+ get { return (float)GetValue(CornerRadiusProperty); }
+ set { SetValue(CornerRadiusProperty, value); }
+ }
+
public IPlatformElementConfiguration<T, Frame> On<T>() where T : IConfigPlatform
{
return _platformConfigurationRegistry.Value.On<T>();