Browse Source

Use TryGetEffectiveValue.

For consistency with the other methods.
pull/10324/head
Steven Kirk 4 years ago
parent
commit
fcf1ce74c9
  1. 2
      src/Avalonia.Base/PropertyStore/ValueStore.cs

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

@ -211,7 +211,7 @@ namespace Avalonia.PropertyStore
public void SetCurrentValue<T>(StyledProperty<T> property, T value)
{
if (_effectiveValues.TryGetValue(property, out var v))
if (TryGetEffectiveValue(property, out var v))
{
((EffectiveValue<T>)v).SetCurrentValueAndRaise(this, property, value);
}

Loading…
Cancel
Save