diff options
author | Jimmy Garrido <jimmygarrido@outlook.com> | 2016-11-08 07:38:17 -0800 |
---|---|---|
committer | Stephane Delcroix <stephane@delcroix.org> | 2016-11-08 16:38:17 +0100 |
commit | 8aa29ec3441cf169bef02e83f213bff06ce6cc36 (patch) | |
tree | 1f7e70178d82a08a6a8e03c5c6d4ef822f896edd /Xamarin.Forms.Platform.WinRT | |
parent | 62c3993be3f840bab12b521f569c74c097c8ac94 (diff) | |
download | xamarin-forms-8aa29ec3441cf169bef02e83f213bff06ce6cc36.tar.gz xamarin-forms-8aa29ec3441cf169bef02e83f213bff06ce6cc36.tar.bz2 xamarin-forms-8aa29ec3441cf169bef02e83f213bff06ce6cc36.zip |
[UWP] Fix Transparent Default Button (#468)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/FormsButton.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/FormsButton.cs b/Xamarin.Forms.Platform.WinRT/FormsButton.cs index ffe75d4f..b765948c 100644 --- a/Xamarin.Forms.Platform.WinRT/FormsButton.cs +++ b/Xamarin.Forms.Platform.WinRT/FormsButton.cs @@ -74,7 +74,9 @@ namespace Xamarin.Forms.Platform.WinRT void UpdateBackgroundColor() { - Background = Color.Transparent.ToBrush(); + if (BackgroundColor == null) + BackgroundColor = Background; + #if WINDOWS_UWP if (_contentPresenter != null) _contentPresenter.Background = BackgroundColor; @@ -82,6 +84,7 @@ namespace Xamarin.Forms.Platform.WinRT if (_border != null) _border.Background = BackgroundColor; #endif + Background = Color.Transparent.ToBrush(); } void UpdateBorderRadius() |