summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
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.Platform.iOS
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.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/FrameRenderer.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/FrameRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/FrameRenderer.cs
index 3d2213f..3914cf3 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/FrameRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/FrameRenderer.cs
@@ -25,7 +25,13 @@ namespace Xamarin.Forms.Platform.iOS
void SetupLayer()
{
- Layer.CornerRadius = 5;
+ float cornerRadius = Element.CornerRadius;
+
+ if (cornerRadius == -1f)
+ cornerRadius = 5f; // default corner radius
+
+ Layer.CornerRadius = cornerRadius;
+
if (Element.BackgroundColor == Color.Default)
Layer.BackgroundColor = UIColor.White.CGColor;
else