diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-08-21 16:13:12 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-08-21 16:13:12 +0200 |
| commit | 4464d8c4d183a963a0c39f5eea393529ebbbc013 (patch) | |
| tree | 230b8cf4bf05c13054c1bc25406defbffb4c76e6 /src/GraphicObjects/TemplatedControl.cs | |
| parent | 4c45c1aba33ea287650bef43543af559b8804fae (diff) | |
Item template property for listbox, added ItemTemplate for testTypeViewer
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 |