Browse Source

Tweak naming.

refactor/style-priorities
Steven Kirk 4 years ago
parent
commit
2377dca2d1
  1. 15
      src/Avalonia.Base/PropertyStore/ValueStore.cs
  2. 2
      src/Avalonia.Base/Styling/StyleInstance.cs

15
src/Avalonia.Base/PropertyStore/ValueStore.cs

@ -274,11 +274,6 @@ namespace Avalonia.PropertyStore
DictionaryPool<AvaloniaProperty, OldNewValue>.Release(values);
}
public void FrameActivationChanged(IValueFrame frame)
{
ReevaluateEffectiveValues();
}
/// <summary>
/// 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
}
}
/// <summary>
/// Called by an <see cref="IValueFrame"/> when its <see cref="IValueFrame.IsActive"/>
/// state changes.
/// </summary>
/// <param name="frame">The frame which produced the change.</param>
public void OnFrameActivationChanged(IValueFrame frame)
{
ReevaluateEffectiveValues();
}
/// <summary>
/// Called by the parent value store when its inheritance ancestor changes.
/// </summary>

2
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);
}
}
}

Loading…
Cancel
Save