Commit b667a15a authored by tebjan's avatar tebjan
Browse files

svg element has content changed event

parent f541d280
......@@ -82,12 +82,12 @@ namespace Svg
var oldVal = _content;
_content = value;
if(_content != oldVal)
OnAttributeChanged(new AttributeEventArgs{ Attribute = "", Value = value });
OnContentChanged(new ContentEventArgs{ Content = value });
}
else
{
_content = value;
OnAttributeChanged(new AttributeEventArgs{ Attribute = "", Value = value });
OnContentChanged(new ContentEventArgs{ Content = value });
}
}
}
......@@ -732,6 +732,20 @@ namespace Svg
}
}
/// <summary>
/// Fired when an Atrribute of this Element has changed
/// </summary>
public event EventHandler<ContentEventArgs> ContentChanged;
protected void OnContentChanged(ContentEventArgs args)
{
var handler = ContentChanged;
if(handler != null)
{
handler(this, args);
}
}
#region graphical EVENTS
/*
......@@ -952,6 +966,14 @@ namespace Svg
public object Value;
}
/// <summary>
/// Content of this whas was set
/// </summary>
public class ContentEventArgs : SVGArg
{
public string Content;
}
/// <summary>
/// Describes the Attribute which was set
/// </summary>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment