diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-10 16:10:18 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-10 16:10:18 +0200 |
| commit | 04f0def856c8ff46ad63cd5976a1299c0b91ac44 (patch) | |
| tree | 274f83dc92712d8352b7949551e9eefcb66ad291 /src/GraphicObjects/RadioButton.cs | |
| parent | 73c7ac95b12d72bcb3f5d549c76bdf0b5a093847 (diff) | |
- template attribute (in xml, and in c# for default one
Diffstat (limited to 'src/GraphicObjects/RadioButton.cs')
| -rw-r--r-- | src/GraphicObjects/RadioButton.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/GraphicObjects/RadioButton.cs b/src/GraphicObjects/RadioButton.cs index 71911d68..8c8000e2 100644 --- a/src/GraphicObjects/RadioButton.cs +++ b/src/GraphicObjects/RadioButton.cs @@ -16,6 +16,7 @@ using System.ComponentModel; namespace go
{
+ [DefaultTemplate("#go.Templates.RadioButton.goml")]
public class RadioButton : TemplatedControl
{
Label _caption;
@@ -27,10 +28,7 @@ namespace go protected override void loadTemplate(GraphicObject template = null)
{
- if (template == null)
- this.SetChild (Interface.Load ("#go.Templates.RadioButton.goml"));
- else
- this.SetChild (template);
+ base.loadTemplate (template);
_caption = this.child.FindByName ("Caption") as Label;
_image = this.child.FindByName ("Image") as Image;
@@ -38,7 +36,7 @@ namespace go }
- [XmlAttributeAttribute()][DefaultValue("RadioButton")]
+ [XmlAttributeAttribute][DefaultValue("RadioButton")]
public string Caption {
get { return _caption.Text; }
set {
|