From fcf1ce74c92174fd77d5b6b09c29e586483029f4 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Mon, 13 Feb 2023 16:34:46 +0100 Subject: [PATCH] Use TryGetEffectiveValue. For consistency with the other methods. --- src/Avalonia.Base/PropertyStore/ValueStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Base/PropertyStore/ValueStore.cs b/src/Avalonia.Base/PropertyStore/ValueStore.cs index 03d7efc566..8b702665f8 100644 --- a/src/Avalonia.Base/PropertyStore/ValueStore.cs +++ b/src/Avalonia.Base/PropertyStore/ValueStore.cs @@ -211,7 +211,7 @@ namespace Avalonia.PropertyStore public void SetCurrentValue(StyledProperty property, T value) { - if (_effectiveValues.TryGetValue(property, out var v)) + if (TryGetEffectiveValue(property, out var v)) { ((EffectiveValue)v).SetCurrentValueAndRaise(this, property, value); }