aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/CheckBox.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/CheckBox.cs')
-rw-r--r--src/GraphicObjects/CheckBox.cs14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/GraphicObjects/CheckBox.cs b/src/GraphicObjects/CheckBox.cs
index fa37c70c..edf6650b 100644
--- a/src/GraphicObjects/CheckBox.cs
+++ b/src/GraphicObjects/CheckBox.cs
@@ -5,6 +5,7 @@ using System.Xml.Serialization;
namespace Crow
{
+ [DefaultStyle("#Crow.Styles.CheckBox.style")]
[DefaultTemplate("#Crow.Templates.CheckBox.goml")]
public class CheckBox : TemplatedControl
{
@@ -14,21 +15,12 @@ namespace Crow
#region CTOR
public CheckBox() : base()
- {
- }
+ {}
#endregion
public event EventHandler Checked;
public event EventHandler Unchecked;
- #region GraphicObject overrides
- [XmlAttributeAttribute()][DefaultValue("#Crow.Style.CheckBox.style")]
- public override string Style {
- get { return base.Style; }
- set { base.Style = value; }
- }
- #endregion
-
[XmlAttributeAttribute()][DefaultValue("Checkbox")]
public string Caption {
get { return caption; }
@@ -49,7 +41,6 @@ namespace Crow
NotifyValueChanged ("Image", image);
}
}
-
[XmlAttributeAttribute()][DefaultValue(false)]
public bool IsChecked
{
@@ -69,6 +60,7 @@ namespace Crow
Unchecked.Raise (this, null);
}
}
+
public override void onMouseClick (object sender, MouseButtonEventArgs e)
{
IsChecked = !IsChecked;