Skip to content

Commit

Permalink
Merge pull request #18176 from Youssef1313/cleanup-dostore
Browse files Browse the repository at this point in the history
refactor: More DP-related cleanup
  • Loading branch information
jeromelaban authored Sep 12, 2024
2 parents a0955f2 + 45f2695 commit a3d6e51
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/Border/Border.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected override void OnBackgroundChanged(DependencyPropertyChangedEventArgs e
e.OldValue as Brush,
e.NewValue as Brush,
this.BackgroundTransition,
((IDependencyObjectStoreProvider)this).Store.GetPropertyDetails(BackgroundProperty).CurrentHighestValuePrecedence == DependencyPropertyValuePrecedences.Animations);
((IDependencyObjectStoreProvider)this).Store.GetCurrentHighestValuePrecedence(BackgroundProperty) == DependencyPropertyValuePrecedences.Animations);
#else
UpdateBorder();
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ protected override void OnBackgroundChanged(DependencyPropertyChangedEventArgs e
e.OldValue as Brush,
e.NewValue as Brush,
this.BackgroundTransition,
((IDependencyObjectStoreProvider)this).Store.GetPropertyDetails(BackgroundProperty).CurrentHighestValuePrecedence == DependencyPropertyValuePrecedences.Animations);
((IDependencyObjectStoreProvider)this).Store.GetCurrentHighestValuePrecedence(BackgroundProperty) == DependencyPropertyValuePrecedences.Animations);
#else
UpdateBorder();
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/Panel/Panel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected override void OnBackgroundChanged(DependencyPropertyChangedEventArgs e
e.OldValue as Brush,
e.NewValue as Brush,
this.BackgroundTransition,
((IDependencyObjectStoreProvider)this).Store.GetPropertyDetails(BackgroundProperty).CurrentHighestValuePrecedence == DependencyPropertyValuePrecedences.Animations);
((IDependencyObjectStoreProvider)this).Store.GetCurrentHighestValuePrecedence(BackgroundProperty) == DependencyPropertyValuePrecedences.Animations);
#else
UpdateBorder();
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/Uno.UI/UI/Xaml/DependencyObjectStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ private void Dispose(bool disposing)
return GetDefaultValue(property);
}

propertyDetails = _properties.GetPropertyDetails(property);

return propertyDetails.CurrentHighestValuePrecedence == DependencyPropertyValuePrecedences.DefaultValue
? GetDefaultValue(propertyDetails.Property)
: propertyDetails.GetEffectiveValue();
Expand Down

0 comments on commit a3d6e51

Please sign in to comment.