aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedControl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
-rw-r--r--src/GraphicObjects/TemplatedControl.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs
index b04fe204..744cd329 100644
--- a/src/GraphicObjects/TemplatedControl.cs
+++ b/src/GraphicObjects/TemplatedControl.cs
@@ -64,7 +64,7 @@ namespace Crow
string _template;
string _itemTemplate;
- protected Dictionary<string, ItemTemplate> itemTemplates;
+ public Dictionary<string, ItemTemplate> ItemTemplates;
[XmlAttributeAttribute][DefaultValue(null)]
public string Template {
@@ -150,12 +150,12 @@ namespace Crow
xr.MoveToElement ();
itemTmp = xr.ReadInnerXml ();
- if (itemTemplates == null)
- itemTemplates = new Dictionary<string, ItemTemplate> ();
+ if (ItemTemplates == null)
+ ItemTemplates = new Dictionary<string, ItemTemplate> ();
//TODO:check encoding
- itemTemplates[dataType] = new ItemTemplate (Encoding.UTF8.GetBytes(itemTmp));
+ ItemTemplates[dataType] = new ItemTemplate (Encoding.UTF8.GetBytes(itemTmp));
if (!string.IsNullOrEmpty (datas))
- itemTemplates [dataType].CreateExpandDelegate(dataType, datas);
+ ItemTemplates [dataType].CreateExpandDelegate(this, dataType, datas);
continue;
}