Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Windows] Fix Transparent Default Button #468

Merged
merged 1 commit into from Nov 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion Xamarin.Forms.Platform.WinRT/FormsButton.cs
Expand Up @@ -74,14 +74,17 @@ static void OnBorderRadiusChanged(DependencyObject d, DependencyPropertyChangedE

void UpdateBackgroundColor()
{
Background = Color.Transparent.ToBrush();
if (BackgroundColor == null)
BackgroundColor = Background;

#if WINDOWS_UWP
if (_contentPresenter != null)
_contentPresenter.Background = BackgroundColor;
#else
if (_border != null)
_border.Background = BackgroundColor;
#endif
Background = Color.Transparent.ToBrush();
}

void UpdateBorderRadius()
Expand Down