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