diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-16 15:17:15 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-16 15:17:15 +0200 |
| commit | 92f6458d4b4935762cb60afbc0750d2c9c1e5497 (patch) | |
| tree | b61abc0ffe6238b4667f24d795a13760bce65809 /src/GraphicObjects | |
| parent | c9d9828221aaa571651ded4a01e21a10adcafb5e (diff) | |
add Checked and Unchecked events
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/Checkbox.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/GraphicObjects/Checkbox.cs b/src/GraphicObjects/Checkbox.cs index b6796659..ede5d520 100644 --- a/src/GraphicObjects/Checkbox.cs +++ b/src/GraphicObjects/Checkbox.cs @@ -29,6 +29,8 @@ namespace go }
#endregion
+ public event EventHandler Checked;
+ public event EventHandler Unchecked;
#region GraphicObject overrides
// [XmlAttributeAttribute()][DefaultValue(-1)]
@@ -74,10 +76,13 @@ namespace go isChecked = value;
NotifyValueChanged ("IsChecked", value);
- if (isChecked)
+ if (isChecked) {
NotifyValueChanged ("SvgSub", "checked");
- else
+ Checked.Raise (this, null);
+ } else {
NotifyValueChanged ("SvgSub", "unchecked");
+ Unchecked.Raise (this, null);
+ }
}
}
public override void onMouseClick (object sender, MouseButtonEventArgs e)
|