Browse Source

Merge pull request #383 from wieslawsoltes/FixIssue382

Fix for issue #382
pull/316/merge
Steven Kirk 11 years ago
parent
commit
ee81fb66d5
  1. 3
      src/Markup/Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs

3
src/Markup/Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs

@ -3,6 +3,7 @@
using System;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Linq;
using System.Reflection;
@ -42,7 +43,7 @@ namespace Perspex.Markup.Data.Plugins
Contract.Requires<ArgumentNullException>(propertyName != null);
Contract.Requires<ArgumentNullException>(changed != null);
var p = instance.GetType().GetRuntimeProperty(propertyName);
var p = instance.GetType().GetRuntimeProperties().FirstOrDefault(_ => _.Name == propertyName);
if (p != null)
{

Loading…
Cancel
Save