From 4644ba98f142578c22b17f13d4cb693422304052 Mon Sep 17 00:00:00 2001 From: Andrei Date: Fri, 11 Jan 2019 23:17:32 +0300 Subject: [PATCH] fix #4788 (#4959) fixes #4788 --- Xamarin.Forms.Platform.WPF/Renderers/BoxViewRenderer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Xamarin.Forms.Platform.WPF/Renderers/BoxViewRenderer.cs b/Xamarin.Forms.Platform.WPF/Renderers/BoxViewRenderer.cs index a5a804e..b6784cb 100644 --- a/Xamarin.Forms.Platform.WPF/Renderers/BoxViewRenderer.cs +++ b/Xamarin.Forms.Platform.WPF/Renderers/BoxViewRenderer.cs @@ -30,7 +30,7 @@ namespace Xamarin.Forms.Platform.WPF SetNativeControl(rectangle); } - UpdateColor(); + UpdateBackground(); UpdateCornerRadius(); } @@ -42,7 +42,7 @@ namespace Xamarin.Forms.Platform.WPF base.OnElementPropertyChanged(sender, e); if (e.PropertyName == BoxView.ColorProperty.PropertyName) - UpdateColor(); + UpdateBackground(); else if (e.PropertyName == BoxView.CornerRadiusProperty.PropertyName) UpdateCornerRadius(); } @@ -54,7 +54,7 @@ namespace Xamarin.Forms.Platform.WPF UpdateSize(); } - void UpdateColor() + protected override void UpdateBackground() { Color color = Element.Color != Color.Default ? Element.Color : Element.BackgroundColor; _border.UpdateDependencyColor(Border.BackgroundProperty, color); -- 2.7.4