From: jp Date: Sat, 27 Feb 2016 11:31:51 +0000 (+0100) Subject: resolveBinding when datasource change event if dataSource is null X-Git-Tag: v0.4~111 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=b855b28167d8f2df5675243fff36b2697706b1b8;p=jp%2Fcrow.git resolveBinding when datasource change event if dataSource is null --- diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 503a250b..894d2270 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -426,13 +426,11 @@ namespace Crow if (dataSource == value) return; - if (dataSource != null) - this.ClearBinding (); + this.ClearBinding (); dataSource = value; - if (dataSource != null) - this.ResolveBindings(); + this.ResolveBindings(); NotifyValueChanged ("DataSource", dataSource); }