diff options
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() |