Browse Source

Correctly report inherited values in diagnostics.

If an inherited value has a binding but that binding is returning unset
then return the inherited value.
pull/390/head
Steven Kirk 11 years ago
parent
commit
69cf02690d
  1. 2
      src/Perspex.Base/Diagnostics/PerspexObjectExtensions.cs

2
src/Perspex.Base/Diagnostics/PerspexObjectExtensions.cs

@ -27,7 +27,7 @@ namespace Perspex.Diagnostics
{ {
return new PerspexPropertyValue( return new PerspexPropertyValue(
property, property,
value.Value, o.GetValue(property),
(BindingPriority)value.ValuePriority, (BindingPriority)value.ValuePriority,
value.GetDiagnostic()); value.GetDiagnostic());
} }

Loading…
Cancel
Save