Commit cecce654 authored by tebjan's avatar tebjan
Browse files

ellipse also fires changed events for its position and radius

parent 59051383
......@@ -25,9 +25,13 @@ namespace Svg
{
get { return this._centerX; }
set
{
if(_centerX != value)
{
this._centerX = value;
this.IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs{ Attribute = "cx", Value = value });
}
}
}
......@@ -36,9 +40,13 @@ namespace Svg
{
get { return this._centerY; }
set
{
if(_centerY != value)
{
this._centerY = value;
this.IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs{ Attribute = "cy", Value = value });
}
}
}
......@@ -46,14 +54,30 @@ namespace Svg
public virtual SvgUnit RadiusX
{
get { return this._radiusX; }
set { this._radiusX = value; this.IsPathDirty = true; }
set
{
if(_radiusX != value)
{
this._radiusX = value;
this.IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs{ Attribute = "rx", Value = value });
}
}
}
[SvgAttribute("ry")]
public virtual SvgUnit RadiusY
{
get { return this._radiusY; }
set { this._radiusY = value; this.IsPathDirty = true; }
set
{
if(_radiusY != value)
{
this._radiusY = value;
this.IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs{ Attribute = "ry", Value = value });
}
}
}
/// <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