Browse Source

Go direct to property store.

To avoid a call to `VerifyAccess` (which shows up when profiling).
pull/3255/head
Steven Kirk 7 years ago
parent
commit
00c1c35125
  1. 2
      src/Avalonia.Base/AvaloniaObject.cs

2
src/Avalonia.Base/AvaloniaObject.cs

@ -431,7 +431,7 @@ namespace Avalonia
Optional<T> oldValue,
Optional<T> newValue)
{
if (property.Inherits && !IsSet(property))
if (property.Inherits && (_values == null || !_values.IsSet(property)))
{
RaisePropertyChanged(property, oldValue, newValue, BindingPriority.LocalValue);
}

Loading…
Cancel
Save