From 4c12729f3b7eb99b36cc7e58ff72f42b14336537 Mon Sep 17 00:00:00 2001 From: Matthew S Date: Mon, 15 Mar 2021 22:08:42 +0300 Subject: [PATCH] fix badge background color (#1080) --- .../Views/BadgeView/BadgeView.shared.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CommunityToolkit/Xamarin.CommunityToolkit/Views/BadgeView/BadgeView.shared.cs b/src/CommunityToolkit/Xamarin.CommunityToolkit/Views/BadgeView/BadgeView.shared.cs index 91de3fb8c..8577e8b6c 100644 --- a/src/CommunityToolkit/Xamarin.CommunityToolkit/Views/BadgeView/BadgeView.shared.cs +++ b/src/CommunityToolkit/Xamarin.CommunityToolkit/Views/BadgeView/BadgeView.shared.cs @@ -103,8 +103,9 @@ public IBadgeAnimation? BadgeAnimation /// Backing BindableProperty for the property. /// public static new BindableProperty BackgroundColorProperty = - BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(BadgeView), defaultValue: Color.Default); - + BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(BadgeView), defaultValue: Color.Default, + propertyChanged: OnLayoutPropertyChanged); + /// /// Gets or sets the background of the badge. This is a bindable property. ///