diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-10-13 16:57:26 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-10-13 16:57:26 +0200 |
| commit | 6bedf8d5d0b78ba0705e37375d8dee016e87ebbb (patch) | |
| tree | 4dabb643902d9ed30d185f9356bc3a17115011f8 /src/GraphicObjects/ListBox.cs | |
| parent | 97536ca0666ce95a598569afbaa8657e54e48439 (diff) | |
- GraphicTree parsing bindings in templates instead of using
datasource which could be kept for other uses
- ListBox bindings debug
- LogicalParent for Popper to get correct DataSource for content
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
| -rw-r--r-- | src/GraphicObjects/ListBox.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs index 9f408b5a..15752f80 100644 --- a/src/GraphicObjects/ListBox.cs +++ b/src/GraphicObjects/ListBox.cs @@ -91,10 +91,15 @@ namespace go Thread t = new Thread (loadingThread); t.Start (); + t.Join (); } } - + public override void UpdateLayout (LayoutingType layoutType) + { + CheckPendingChildrenAddition (); + base.UpdateLayout (layoutType); + } internal void CheckPendingChildrenAddition() { if (pendingChildrenAddition == null) @@ -127,7 +132,8 @@ namespace go foreach (var item in data) { ms.Seek(0,SeekOrigin.Begin); - GraphicObject g = Interface.Load (ms, t, item); + GraphicObject g = Interface.Load (ms, t); + g.DataSource = item; g.MouseClick += itemClick; lock (pendingChildrenAddition) { |