Skip to content

Commit

Permalink
perf: Simplify inherited DP check
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Aug 19, 2024
1 parent 6fb08d2 commit 0549152
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Uno.UI/UI/Xaml/DependencyObjectStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,7 @@ private static void TryClearBinding(object? value, DependencyPropertyDetails pro

private void TryUpdateInheritedAttachedProperty(DependencyProperty property, DependencyPropertyDetails propertyDetails)
{
if (
property.IsAttached
&& propertyDetails.Metadata is FrameworkPropertyMetadata fm
&& fm.Options.HasInherits())
if (property.IsAttached && property.IsInherited)
{
// Add inheritable attached properties to the inherited forwarded
// properties, so they can be automatically propagated when a child
Expand Down

0 comments on commit 0549152

Please sign in to comment.