Browse Source

Check property can be written...

...before attempting to do so
pull/237/head
Steven Kirk 11 years ago
parent
commit
8139198486
  1. 2
      src/Markup/Perspex.Markup/Binding/PropertyAccessorNode.cs

2
src/Markup/Perspex.Markup/Binding/PropertyAccessorNode.cs

@ -31,7 +31,7 @@ namespace Perspex.Markup.Binding
}
else
{
if (_propertyInfo != null)
if (_propertyInfo != null && _propertyInfo.CanWrite)
{
_propertyInfo.SetValue(Target, value);
return true;

Loading…
Cancel
Save