|
|
@ -419,7 +419,9 @@ namespace Avalonia.PropertyStore |
|
|
ReevaluateEffectiveValue(property, current); |
|
|
ReevaluateEffectiveValue(property, current); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
|
|
|
{ |
|
|
ReevaluateEffectiveValues(); |
|
|
ReevaluateEffectiveValues(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
@ -481,7 +483,8 @@ namespace Avalonia.PropertyStore |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="property">The property whose value changed.</param>
|
|
|
/// <param name="property">The property whose value changed.</param>
|
|
|
/// <param name="oldValue">The old value of the property.</param>
|
|
|
/// <param name="oldValue">The old value of the property.</param>
|
|
|
public void OnInheritedEffectiveValueDisposed<T>(StyledProperty<T> property, T oldValue) |
|
|
/// <param name="newValue">The new value of the property.</param>
|
|
|
|
|
|
public void OnInheritedEffectiveValueDisposed<T>(StyledProperty<T> property, T oldValue, T newValue) |
|
|
{ |
|
|
{ |
|
|
Debug.Assert(property.Inherits); |
|
|
Debug.Assert(property.Inherits); |
|
|
|
|
|
|
|
|
@ -489,12 +492,11 @@ namespace Avalonia.PropertyStore |
|
|
|
|
|
|
|
|
if (children is not null) |
|
|
if (children is not null) |
|
|
{ |
|
|
{ |
|
|
var defaultValue = property.GetDefaultValue(Owner.GetType()); |
|
|
|
|
|
var count = children.Count; |
|
|
var count = children.Count; |
|
|
|
|
|
|
|
|
for (var i = 0; i < count; ++i) |
|
|
for (var i = 0; i < count; ++i) |
|
|
{ |
|
|
{ |
|
|
children[i].GetValueStore().OnAncestorInheritedValueChanged(property, oldValue, defaultValue); |
|
|
children[i].GetValueStore().OnAncestorInheritedValueChanged(property, oldValue, newValue); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|