|
|
|
@ -3,10 +3,10 @@ using Avalonia.Media; |
|
|
|
|
|
|
|
namespace Avalonia.Controls.Shapes |
|
|
|
{ |
|
|
|
public class Polyline: Shape |
|
|
|
public class Polyline : Shape |
|
|
|
{ |
|
|
|
public static readonly StyledProperty<IList<Point>> PointsProperty = |
|
|
|
AvaloniaProperty.Register<Polyline, IList<Point>>("Points"); |
|
|
|
AvaloniaProperty.Register<Polyline, IList<Point>>("Points", new Points()); |
|
|
|
|
|
|
|
static Polyline() |
|
|
|
{ |
|
|
|
@ -14,11 +14,6 @@ namespace Avalonia.Controls.Shapes |
|
|
|
AffectsGeometry<Polyline>(PointsProperty); |
|
|
|
} |
|
|
|
|
|
|
|
public Polyline() |
|
|
|
{ |
|
|
|
Points = new Points(); |
|
|
|
} |
|
|
|
|
|
|
|
public IList<Point> Points |
|
|
|
{ |
|
|
|
get => GetValue(PointsProperty); |
|
|
|
|