From 3dd77aa562c73d5b2ba227f9f7ad7c3ca6456141 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 8 Feb 2016 18:34:15 +0100 Subject: [PATCH] add checked and unchecked events --- src/GraphicObjects/RadioButton.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/GraphicObjects/RadioButton.cs b/src/GraphicObjects/RadioButton.cs index 66e63ce4..141a9887 100644 --- a/src/GraphicObjects/RadioButton.cs +++ b/src/GraphicObjects/RadioButton.cs @@ -26,7 +26,10 @@ namespace Crow #region CTOR public RadioButton() : base(){} #endregion - + + public event EventHandler Checked; + public event EventHandler Unchecked; + #region GraphicObject overrides [XmlAttributeAttribute()][DefaultValue(true)]//overiden to get default to true public override bool Focusable @@ -71,10 +74,13 @@ namespace Crow 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); + } } } -- 2.47.3