diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 05:32:49 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 05:32:49 +0200 |
| commit | 47dad629d4ff744071f06a342f5f2eabaa879d71 (patch) | |
| tree | 61c6128415244f7f9751856cbbb6c248f005c515 /src/GraphicObjects/TemplatedControl.cs | |
| parent | 4ca12da2740078a292600736c60c09897263ef95 (diff) | |
First MSIL expand in TreeView with ItemTemplate, need to share
ItemTemplates.
modifié : Tests/Interfaces/Unsorted/testTreeView.crow
modifié : src/GraphicObjects/TemplatedControl.cs
modifié : src/IMLStream.cs
modifié : src/Interface.cs
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index d3feb1d2..b04fe204 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -154,7 +154,8 @@ namespace Crow itemTemplates = new Dictionary<string, ItemTemplate> (); //TODO:check encoding itemTemplates[dataType] = new ItemTemplate (Encoding.UTF8.GetBytes(itemTmp)); - itemTemplates [dataType].CreateExpandDelegate(dataType, datas); + if (!string.IsNullOrEmpty (datas)) + itemTemplates [dataType].CreateExpandDelegate(dataType, datas); continue; } |