Browse Source

Throw if no matching property accessor found.

This shouldn't happen normally as `InpcPropertyAcessorPlugin` matches everything.
pull/1695/head
Steven Kirk 8 years ago
parent
commit
8bd8a61142
  1. 6
      src/Avalonia.Base/Data/Core/PropertyAccessorNode.cs

6
src/Avalonia.Base/Data/Core/PropertyAccessorNode.cs

@ -53,6 +53,12 @@ namespace Avalonia.Data.Core
}
}
if (accessor == null)
{
throw new NotSupportedException(
$"Could not find a matching property accessor for {PropertyName}.");
}
accessor.Subscribe(ValueChanged);
_accessor = accessor;
}

Loading…
Cancel
Save