diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-14 16:49:43 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-14 16:49:43 +0200 |
| commit | e568d1381aba02054acd3e267f42d319f161d59e (patch) | |
| tree | 4d7bb8f75f753fd39d2d5aa2dfba400363313dd8 /src/GraphicObjects/ListBox.cs | |
| parent | 6d3c24171a10c55a748657181ecd269f13829f7f (diff) | |
clear bindings of list items when data is change
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
| -rw-r--r-- | src/GraphicObjects/ListBox.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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) |