diff --git a/src/Avalonia.Base/PropertyStore/ValueStore.cs b/src/Avalonia.Base/PropertyStore/ValueStore.cs index c062cc6ce5..b100fbcf57 100644 --- a/src/Avalonia.Base/PropertyStore/ValueStore.cs +++ b/src/Avalonia.Base/PropertyStore/ValueStore.cs @@ -274,11 +274,6 @@ namespace Avalonia.PropertyStore DictionaryPool.Release(values); } - public void FrameActivationChanged(IValueFrame frame) - { - ReevaluateEffectiveValues(); - } - /// /// Called by non-LocalValue binding entries to re-evaluate the effective value when the /// binding produces a new value. @@ -363,6 +358,16 @@ namespace Avalonia.PropertyStore } } + /// + /// Called by an when its + /// state changes. + /// + /// The frame which produced the change. + public void OnFrameActivationChanged(IValueFrame frame) + { + ReevaluateEffectiveValues(); + } + /// /// Called by the parent value store when its inheritance ancestor changes. /// diff --git a/src/Avalonia.Base/Styling/StyleInstance.cs b/src/Avalonia.Base/Styling/StyleInstance.cs index e3be01b33d..377bf31a32 100644 --- a/src/Avalonia.Base/Styling/StyleInstance.cs +++ b/src/Avalonia.Base/Styling/StyleInstance.cs @@ -68,7 +68,7 @@ namespace Avalonia.Styling void IStyleActivatorSink.OnNext(bool value, int tag) { if (!_isActivatorInitializing) - Owner?.FrameActivationChanged(this); + Owner?.OnFrameActivationChanged(this); } } }