diff options
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index 7c50a2ea..d8af0bdf 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -37,6 +37,15 @@ namespace go Path = path; } } + [AttributeUsage(AttributeTargets.Class)] + public class DefaultItemTemplate : Attribute + { + public string Path = ""; + public DefaultItemTemplate(string path) + { + Path = path; + } + } public abstract class TemplatedControl : PrivateContainer, IXmlSerializable { @@ -77,10 +86,7 @@ namespace go #region IXmlSerializable - public override System.Xml.Schema.XmlSchema GetSchema() - { - return null; - } + public override System.Xml.Schema.XmlSchema GetSchema(){ return null; } public override void ReadXml(System.Xml.XmlReader reader) { //Template could be either an attribute containing path or expressed inlined |