-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
I found a performance issue in a grid control that is setting the "Style" property of the cells and found the issue is caused because the OnPropertyChanged("Background") method is called even if the background doesn't change.
I checked the brush set in the old and the new style is the same

When the style set is exactly the same object the OnPropertyChanged("Background") is not called (correct), but if the style is a copy of the preview the method is called (Incorrect), OnPropertyChanged("Background") should only be called if the Background changes.
Steps to Reproduce
Create a sample from above description.
Link to public reproduction project repository
No demo
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
It affects all the platforms
Did you find any workaround?
I can detect whether the styles are the same (despite they are not the same instance), but if another property is different I need to set the style anyway and this will cause the background changed to be triggered.
Relevant log output
No response
