diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-12 21:46:14 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-12 21:46:14 +0200 |
| commit | 11dcc340f08a142f807419b85ff07d45f870e8e5 (patch) | |
| tree | 342576cea03d06eac4f5d5f2f50e62d1d456d6b0 /src/GraphicObjects | |
| parent | 8624ae1ead48d7ddc206486db0c4fc024afac703 (diff) | |
update template and tests with new sizing policy for stacks (stretched
by default)
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/Checkbox.cs | 7 | ||||
| -rw-r--r-- | src/GraphicObjects/RadioButton.cs | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/GraphicObjects/Checkbox.cs b/src/GraphicObjects/Checkbox.cs index f6b7bae3..863cae0c 100644 --- a/src/GraphicObjects/Checkbox.cs +++ b/src/GraphicObjects/Checkbox.cs @@ -25,7 +25,7 @@ namespace go public Checkbox() : base()
{
}
-
+
protected override void loadTemplate(GraphicObject template = null)
{
base.loadTemplate (template);
@@ -64,6 +64,11 @@ namespace go }
}
+ [XmlAttributeAttribute()][DefaultValue(-1)]
+ public override int Height {
+ get { return base.Height; }
+ set { base.Height = value; }
+ }
[XmlAttributeAttribute()][DefaultValue(true)]//overiden to get default to true
public override bool Focusable
{
diff --git a/src/GraphicObjects/RadioButton.cs b/src/GraphicObjects/RadioButton.cs index 9d7ef83e..245fd2b2 100644 --- a/src/GraphicObjects/RadioButton.cs +++ b/src/GraphicObjects/RadioButton.cs @@ -30,11 +30,16 @@ namespace go {
base.loadTemplate (template);
- _caption = this.child.FindByName ("Caption") as Label;
+ _caption = this.child.FindByName ("Caption") as Label;//TODO:should use bindings instead
_image = this.child.FindByName ("Image") as Image;
_image.SvgSub = "unchecked";
}
-
+
+ [XmlAttributeAttribute()][DefaultValue(-1)]
+ public override int Height {
+ get { return base.Height; }
+ set { base.Height = value; }
+ }
[XmlAttributeAttribute()][DefaultValue(true)]//overiden to get default to true
public override bool Focusable
{
|