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.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Frame.cs b/Xamarin.Forms.Core/Frame.cs
index bb35f147..c93a642c 100644
--- a/Xamarin.Forms.Core/Frame.cs
+++ b/Xamarin.Forms.Core/Frame.cs
@@ -11,7 +11,9 @@ 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);
+ public static readonly BindableProperty CornerRadiusProperty =
+ BindableProperty.Create(nameof(CornerRadius), typeof(float), typeof(Frame), -1.0f,
+ validateValue: (bindable, value) => ((float)value) == -1.0f || ((float)value) >= 0f);
readonly Lazy<PlatformConfigurationRegistry<Frame>> _platformConfigurationRegistry;