Browse Source

Updated new control's properties.

From PerspexProperty to StyledProperty.
pull/387/merge
Steven Kirk 11 years ago
parent
commit
1309bb3e1b
  1. 4
      src/Perspex.Controls/Shapes/Line.cs
  2. 2
      src/Perspex.Controls/Shapes/Polygon.cs
  3. 2
      src/Perspex.Controls/Shapes/Polyline.cs

4
src/Perspex.Controls/Shapes/Line.cs

@ -9,10 +9,10 @@ namespace Perspex.Controls.Shapes
{
public class Line : Shape
{
public static readonly PerspexProperty<Point> StartPointProperty =
public static readonly StyledProperty<Point> StartPointProperty =
PerspexProperty.Register<Line, Point>("StartPoint");
public static readonly PerspexProperty<Point> EndPointProperty =
public static readonly StyledProperty<Point> EndPointProperty =
PerspexProperty.Register<Line, Point>("EndPoint");
private LineGeometry _geometry;

2
src/Perspex.Controls/Shapes/Polygon.cs

@ -9,7 +9,7 @@ namespace Perspex.Controls.Shapes
{
public class Polygon : Shape
{
public static readonly PerspexProperty<IList<Point>> PointsProperty =
public static readonly StyledProperty<IList<Point>> PointsProperty =
PerspexProperty.Register<Polygon, IList<Point>>("Points");
public IList<Point> Points

2
src/Perspex.Controls/Shapes/Polyline.cs

@ -9,7 +9,7 @@ namespace Perspex.Controls.Shapes
{
public class Polyline: Shape
{
public static readonly PerspexProperty<IList<Point>> PointsProperty =
public static readonly StyledProperty<IList<Point>> PointsProperty =
PerspexProperty.Register<Polyline, IList<Point>>("Points");
static Polyline()

Loading…
Cancel
Save