From e568d1381aba02054acd3e267f42d319f161d59e Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 14 Sep 2015 16:49:43 +0200 Subject: [PATCH] clear bindings of list items when data is change --- src/GraphicObjects/ListBox.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs index 6267ca92..a73791c8 100644 --- a/src/GraphicObjects/ListBox.cs +++ b/src/GraphicObjects/ListBox.cs @@ -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) -- 2.47.3