summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-11-16 22:05:28 +0100
committerJason Smith <jason.smith@xamarin.com>2016-11-16 13:05:28 -0800
commitacc6efb3d7d502d0a40020ec86eaff4d018de8be (patch)
treeb5187bdde475f568e5b267dfc8240c5cc9223db7 /Xamarin.Forms.Platform.WinRT
parent281bfa2b0a6de05130b87ad5c25f9bf8b05f876c (diff)
downloadxamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.tar.gz
xamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.tar.bz2
xamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.zip
[W] Support 0 as valid BorderWidth (#537)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/ButtonRenderer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/ButtonRenderer.cs b/Xamarin.Forms.Platform.WinRT/ButtonRenderer.cs
index 018fdd4d..aff11963 100644
--- a/Xamarin.Forms.Platform.WinRT/ButtonRenderer.cs
+++ b/Xamarin.Forms.Platform.WinRT/ButtonRenderer.cs
@@ -45,7 +45,7 @@ namespace Xamarin.Forms.Platform.WinRT
if (Element.BorderColor != Color.Default)
UpdateBorderColor();
- if (Element.BorderWidth != 0)
+ if (Element.BorderWidth != (double)Button.BorderWidthProperty.DefaultValue)
UpdateBorderWidth();
if (Element.BorderRadius != (int)Button.BorderRadiusProperty.DefaultValue)
@@ -121,7 +121,7 @@ namespace Xamarin.Forms.Platform.WinRT
void UpdateBorderWidth()
{
- Control.BorderThickness = Element.BorderWidth == 0d ? new WThickness(3) : new WThickness(Element.BorderWidth);
+ Control.BorderThickness = Element.BorderWidth == (double)Button.BorderWidthProperty.DefaultValue ? new WThickness(3) : new WThickness(Element.BorderWidth);
}
void UpdateContent()