diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-31 15:58:52 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-31 15:58:52 +0100 |
| commit | cfb314bd4fe70c83f43bb254bcc1bdb54b2dc827 (patch) | |
| tree | 87c1a868c22ad302325cd55a4468a042e1ba437b /src/GraphicObjects/CheckBox.cs | |
| parent | 177aa594f6a93d4c8c9ee38546f12851782cb838 (diff) | |
move recurrent 'Caption' property in Templated Control
Diffstat (limited to 'src/GraphicObjects/CheckBox.cs')
| -rw-r--r-- | src/GraphicObjects/CheckBox.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/GraphicObjects/CheckBox.cs b/src/GraphicObjects/CheckBox.cs index 46d77e76..19bbb9b9 100644 --- a/src/GraphicObjects/CheckBox.cs +++ b/src/GraphicObjects/CheckBox.cs @@ -27,28 +27,16 @@ namespace Crow { public class CheckBox : TemplatedControl { - string caption; - string image; bool isChecked; #region CTOR public CheckBox() : base() - {} + {} #endregion public event EventHandler Checked; public event EventHandler Unchecked; - [XmlAttributeAttribute()][DefaultValue("Checkbox")] - public string Caption { - get { return caption; } - set { - if (caption == value) - return; - caption = value; - NotifyValueChanged ("Caption", caption); - } - } [XmlAttributeAttribute()][DefaultValue(false)] public bool IsChecked { @@ -57,7 +45,7 @@ namespace Crow { if (isChecked == value) return; - + isChecked = value; NotifyValueChanged ("IsChecked", value); |