Skip to content

Commit 573dc81

Browse files
committed
Update BoxView.cs
1 parent cc1221c commit 573dc81

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Controls/src/Core/BoxView/BoxView.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,13 @@ protected override void OnPropertyChanged([CallerMemberName] string? propertyNam
5656

5757
if (propertyName == BackgroundColorProperty.PropertyName ||
5858
propertyName == ColorProperty.PropertyName ||
59+
propertyName == IsVisibleProperty.PropertyName ||
5960
propertyName == BackgroundProperty.PropertyName ||
6061
propertyName == CornerRadiusProperty.PropertyName)
6162
Handler?.UpdateValue(nameof(IShapeView.Shape));
63+
64+
if(propertyName == IsVisibleProperty.PropertyName)
65+
Handler?.ToPlatform()?.UpdateBackground(this);
6266
}
6367

6468
IShape? IShapeView.Shape => this;

0 commit comments

Comments
 (0)