From cfb314bd4fe70c83f43bb254bcc1bdb54b2dc827 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 31 Jan 2017 15:58:52 +0100 Subject: move recurrent 'Caption' property in Templated Control --- src/GraphicObjects/CheckBox.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/GraphicObjects/CheckBox.cs') 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); -- cgit v1.3.1-4-g156e