diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-26 12:47:39 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-26 12:47:39 +0100 |
| commit | 225d8384090e77e6099010fdb0dfb474ab5c9a8f (patch) | |
| tree | 2681a1105edac064f2cfbf53d9a1d0aee04d7de8 /src/GraphicObjects/TemplatedControl.cs | |
| parent | 57f94308df1d6c5ac4b4c94df47ba57a955b365d (diff) | |
in design saving of GraphicObject
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index c231fd0f..54991a41 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -43,6 +43,20 @@ namespace Crow /// </summary> public abstract class TemplatedControl : PrivateContainer { + #if DESIGN_MODE + public bool design_inlineTemplate = false; + public override void getIML (System.Xml.XmlDocument doc, System.Xml.XmlNode parentElem) + { + if (this.design_isTGItem) + return; + base.getIML (doc, parentElem); + if (child == null || !design_inlineTemplate) + return; + XmlElement xe = doc.CreateElement("Template"); + child.getIML (doc, xe); + parentElem.LastChild.AppendChild (xe); + } + #endif #region CTOR protected TemplatedControl() : base(){} public TemplatedControl (Interface iface) : base(iface){} |