Browse Source

Fixed @kekekeks notes.

Ivan Kochurkin 9 years ago
parent
commit
3fb89ded78
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/Perspex.Controls/Shapes/Line.cs
  2. 2 2
      src/Perspex.Controls/Shapes/Polyline.cs

+ 2 - 2
src/Perspex.Controls/Shapes/Line.cs

@@ -19,9 +19,9 @@ namespace Perspex.Controls.Shapes
         private Point _startPoint;
         private Point _endPoint;
 
-        public Line()
+        static Line()
         {
-            StrokeThickness = 1;
+            StrokeThicknessProperty.OverrideDefaultValue<Line>(1);
         }
 
         public Point StartPoint

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

@@ -12,9 +12,9 @@ namespace Perspex.Controls.Shapes
         public static readonly PerspexProperty<IList<Point>> PointsProperty =
             PerspexProperty.Register<Polyline, IList<Point>>("Points");
 
-        public Polyline()
+        static Polyline()
         {
-            StrokeThickness = 1; // Default Thickness
+            StrokeThicknessProperty.OverrideDefaultValue<Polyline>(1);
         }
 
         public IList<Point> Points