From 490d19f5ca5913b4f95174f1af89e66669b91eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Fri, 1 Jan 2016 21:04:33 +0100 Subject: [PATCH] Fixes issue #382 --- .../Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Markup/Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs b/src/Markup/Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs index 044730f643..50239057a0 100644 --- a/src/Markup/Perspex.Markup/Data/Plugins/InpcPropertyAccessorPlugin.cs +++ b/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(propertyName != null); Contract.Requires(changed != null); - var p = instance.GetType().GetRuntimeProperty(propertyName); + var p = instance.GetType().GetRuntimeProperties().First(_ => _.Name == propertyName); if (p != null) {