Commit cecce654 authored by tebjan's avatar tebjan
Browse files

ellipse also fires changed events for its position and radius

parent 59051383
...@@ -26,34 +26,58 @@ namespace Svg ...@@ -26,34 +26,58 @@ namespace Svg
get { return this._centerX; } get { return this._centerX; }
set set
{ {
this._centerX = value; if(_centerX != value)
this.IsPathDirty = true; {
this._centerX = value;
this.IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs{ Attribute = "cx", Value = value });
}
} }
} }
[SvgAttribute("cy")] [SvgAttribute("cy")]
public virtual SvgUnit CenterY public virtual SvgUnit CenterY
{ {
get { return this._centerY; } get { return this._centerY; }
set set
{ {
this._centerY = value; if(_centerY != value)
this.IsPathDirty = true; {
} this._centerY = value;
this.IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs{ Attribute = "cy", Value = value });
}
}
} }
[SvgAttribute("rx")] [SvgAttribute("rx")]
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