aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/ListBox.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-06-10 16:10:18 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-06-10 16:10:18 +0200
commit04f0def856c8ff46ad63cd5976a1299c0b91ac44 (patch)
tree274f83dc92712d8352b7949551e9eefcb66ad291 /src/GraphicObjects/ListBox.cs
parent73c7ac95b12d72bcb3f5d549c76bdf0b5a093847 (diff)
- template attribute (in xml, and in c# for default one
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
-rw-r--r--src/GraphicObjects/ListBox.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs
index ce6db79b..a66fe7d4 100644
--- a/src/GraphicObjects/ListBox.cs
+++ b/src/GraphicObjects/ListBox.cs
@@ -25,6 +25,7 @@ using System.ComponentModel;
namespace go
{
+ [DefaultTemplate("#go.Templates.Listbox.goml")]
public class ListBox : TemplatedControl
{
Group _list;
@@ -36,11 +37,7 @@ namespace go
#region implemented abstract members of TemplatedControl
protected override void loadTemplate (GraphicObject template = null)
{
- if (template == null)
- this.SetChild (Interface.Load ("#go.Templates.Listbox.goml"));
- else
- this.SetChild (template);
-
+ base.loadTemplate (template);
_list = this.child.FindByName ("List") as Group;
}
#endregion