aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Button.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-25 11:52:35 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-25 11:52:35 +0100
commit54ff9d82e0d195bc335916b8a30a27651f830502 (patch)
treed950855da5376bc8bf3f079c8000dd192f39bc41 /src/GraphicObjects/Button.cs
parentdd6682973fa16921b7ebaf5faa416290c3211c63 (diff)
DefaultStyle attribute, loaded in defvalues
Diffstat (limited to 'src/GraphicObjects/Button.cs')
-rw-r--r--src/GraphicObjects/Button.cs17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/GraphicObjects/Button.cs b/src/GraphicObjects/Button.cs
index 9903888b..92d19af6 100644
--- a/src/GraphicObjects/Button.cs
+++ b/src/GraphicObjects/Button.cs
@@ -13,6 +13,7 @@ using System.ComponentModel;
namespace Crow
{
+ [DefaultStyle("#Crow.Styles.Button.style")]
[DefaultTemplate("#Crow.Templates.Button.crow")]
public class Button : TemplatedContainer
{
@@ -42,22 +43,6 @@ namespace Crow
}
#region GraphicObject Overrides
-// [XmlAttributeAttribute()][DefaultValue(50)]
-// public override int Width {
-// get { return base.Width; }
-// set { base.Width = value; }
-// }
-// [XmlAttributeAttribute()][DefaultValue(20)]
-// public override int Height {
-// get { return base.Height; }
-// set { base.Height = value; }
-// }
- [XmlAttributeAttribute()][DefaultValue(true)]
- public override bool Focusable
- {
- get { return base.Focusable; }
- set { base.Focusable = value; }
- }
public override void ResolveBindings ()
{
base.ResolveBindings ();