From 6bedf8d5d0b78ba0705e37375d8dee016e87ebbb Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 13 Oct 2015 16:57:26 +0200 Subject: - 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 --- src/GraphicObjects/ListBox.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/GraphicObjects/ListBox.cs') 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) { -- cgit v1.3.1-4-g156e