diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2016-11-16 22:05:28 +0100 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-11-16 13:05:28 -0800 |
commit | acc6efb3d7d502d0a40020ec86eaff4d018de8be (patch) | |
tree | b5187bdde475f568e5b267dfc8240c5cc9223db7 /Xamarin.Forms.Platform.WP8 | |
parent | 281bfa2b0a6de05130b87ad5c25f9bf8b05f876c (diff) | |
download | xamarin-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.WP8')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/ButtonRenderer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WP8/ButtonRenderer.cs b/Xamarin.Forms.Platform.WP8/ButtonRenderer.cs index 575de4f3..a84a3db6 100644 --- a/Xamarin.Forms.Platform.WP8/ButtonRenderer.cs +++ b/Xamarin.Forms.Platform.WP8/ButtonRenderer.cs @@ -34,7 +34,7 @@ namespace Xamarin.Forms.Platform.WinPhone if (Element.BorderColor != Color.Default) UpdateBorderColor(); - if (Element.BorderWidth != 0) + if (Element.BorderWidth != (double)Button.BorderWidthProperty.DefaultValue) UpdateBorderWidth(); UpdateFont(); @@ -77,7 +77,7 @@ namespace Xamarin.Forms.Platform.WinPhone 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() |