diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 17:56:20 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-18 15:38:21 +0100 |
| commit | b1810f1f58d44a3d4779bf4f0c5858a52444ec29 (patch) | |
| tree | 206059d4fea3d5d05d106a11f10273129e5ed3d1 /src/GraphicObjects/TemplatedGroup.cs | |
| parent | c94c0f4ad2f762b7e187e8e660cd702efb3e3ea9 (diff) | |
testing with requestedLayouting fieldRequestedLayoutings
Diffstat (limited to 'src/GraphicObjects/TemplatedGroup.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedGroup.cs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/GraphicObjects/TemplatedGroup.cs b/src/GraphicObjects/TemplatedGroup.cs index f7c93763..6067f0ac 100644 --- a/src/GraphicObjects/TemplatedGroup.cs +++ b/src/GraphicObjects/TemplatedGroup.cs @@ -242,12 +242,14 @@ namespace Crow void Ol_ListAdd (object sender, ListChangedEventArg e) { if (this.isPaged) { - throw new NotImplementedException(); + throw new NotImplementedException (); // int p = e.Index / itemPerPage; // int i = e.Index % itemPerPage; // (items.Children [p] as Group).InsertChild (i, e.Element); - } else - loadItem (e.Element, items, dataTest); + } else { + lock(IFace.UpdateMutex) + loadItem (e.Element, items, dataTest); + } } [XmlAttributeAttribute][DefaultValue("SteelBlue")] @@ -445,16 +447,19 @@ namespace Crow iTemp = ItemTemplates ["default"]; } - lock (IFace.LayoutMutex) { - g = iTemp.CreateInstance(); + //lock (IFace.LayoutMutex) { + g = iTemp.CreateInstance (); + #if DESIGN_MODE g.design_isTGItem = true; #endif + + page.AddChild (g); // if (isPaged) g.LogicalParent = this; g.MouseDown += itemClick; - } + //} if (iTemp.Expand != null && g is Expandable) { Expandable e = g as Expandable; |