diff options
author | Andrei N <nitescua@yahoo.com> | 2016-10-09 10:52:38 +0300 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-11-15 11:56:03 -0800 |
commit | 4554e822e3cf5ae71724a8fc89d1a8728118f060 (patch) | |
tree | f7befe212762dd6af5e4d8ae9c90a606c5ee7fc6 /Xamarin.Forms.Core/Frame.cs | |
parent | 0cc2fd2b6742a29fedc03de942801cc14ff6b499 (diff) | |
download | xamarin-forms-4554e822e3cf5ae71724a8fc89d1a8728118f060.tar.gz xamarin-forms-4554e822e3cf5ae71724a8fc89d1a8728118f060.tar.bz2 xamarin-forms-4554e822e3cf5ae71724a8fc89d1a8728118f060.zip |
Added CornerRadius property To Frame control
Diffstat (limited to 'Xamarin.Forms.Core/Frame.cs')
-rw-r--r-- | Xamarin.Forms.Core/Frame.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/Frame.cs b/Xamarin.Forms.Core/Frame.cs index a298c0f0..bb35f147 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>(); |