]> O.S.I.I.S - jp/crow.git/commitdiff
clear bindings of list items when data is change
authorjpbruyere <jp.bruyere@hotmail.com>
Mon, 14 Sep 2015 14:49:43 +0000 (16:49 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Mon, 14 Sep 2015 14:49:43 +0000 (16:49 +0200)
src/GraphicObjects/ListBox.cs

index 6267ca923f1c481989fb66467fbcd123f6fff367..a73791c848c6abe65350afecda55d2a4f0677553 100644 (file)
@@ -71,6 +71,9 @@ namespace go
                        set {                           
                                data = value;
 
+                               foreach (GraphicObject c in _list.Children) {
+                                       c.ClearBinding ();
+                               }
                                _list.Children.Clear ();
                                _list.registerForGraphicUpdate ();
                                if (data == null)