Beispiel #1
0
        protected override void AssignDefaultValuesToSceneNode(SceneNode2D node)
        {
            base.AssignDefaultValuesToSceneNode(node);
            var c = node as ShapeNode2D;

            c.StrokeDashArray    = StrokeDashArray == null ? new float[0] : StrokeDashArray.Select(x => (float)x).ToArray();
            c.StrokeDashCap      = StrokeDashCap.ToD2DCapStyle();
            c.StrokeDashOffset   = (float)StrokeDashOffset;
            c.StrokeEndLineCap   = StrokeEndLineCap.ToD2DCapStyle();
            c.StrokeLineJoin     = StrokeLineJoin.ToD2DLineJoin();
            c.StrokeMiterLimit   = (float)StrokeMiterLimit;
            c.StrokeStartLineCap = StrokeStartLineCap.ToD2DCapStyle();
            c.StrokeThickness    = (float)StrokeThickness;
            c.StrokeDashStyle    = DashStyle.ToD2DDashStyle();
        }