Skip to content

Commit

Permalink
Update BoxView.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Apr 22, 2024
1 parent cc1221c commit 573dc81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Controls/src/Core/BoxView/BoxView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ protected override void OnPropertyChanged([CallerMemberName] string? propertyNam

if (propertyName == BackgroundColorProperty.PropertyName ||
propertyName == ColorProperty.PropertyName ||
propertyName == IsVisibleProperty.PropertyName ||
propertyName == BackgroundProperty.PropertyName ||
propertyName == CornerRadiusProperty.PropertyName)
Handler?.UpdateValue(nameof(IShapeView.Shape));

if(propertyName == IsVisibleProperty.PropertyName)
Handler?.ToPlatform()?.UpdateBackground(this);
}

IShape? IShapeView.Shape => this;
Expand Down

0 comments on commit 573dc81

Please sign in to comment.