From: jp Date: Sun, 28 Feb 2016 08:27:41 +0000 (+0100) Subject: reset resolved state of binding when cleared X-Git-Tag: v0.4~109 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=63de9223cbf45cdfbdcd7224f39ef5febb9ad7b2;p=jp%2Fcrow.git reset resolved state of binding when cleared --- diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 894d2270..0290efd3 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -1383,8 +1383,11 @@ namespace Crow /// public virtual void ClearBinding(){ foreach (Binding b in Bindings) { - if (string.IsNullOrEmpty (b.DynMethodId)) + if (string.IsNullOrEmpty (b.DynMethodId)) { + b.Resolved = false; + //TODO:check if full reset is necessary continue; + } MemberReference mr = null; if (b.Target == null) mr = b.Source;