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(); }
protected override void AssignDefaultValuesToSceneNode(SceneNode2D node) { base.AssignDefaultValuesToSceneNode(node); var c = node as BorderNode2D; c.CornerRadius = (float)CornerRadius; c.Padding = Padding.ToD2DThickness(); c.StrokeDashCap = StrokeDashCap.ToD2DCapStyle(); c.StrokeDashOffset = (float)StrokeDashOffset; c.StrokeDashStyle = StrokeDashStyle.ToD2DDashStyle(); c.StrokeEndLineCap = StrokeEndLineCap.ToD2DCapStyle(); c.StrokeLineJoin = StrokeLineJoin.ToD2DLineJoin(); c.StrokeMiterLimit = (float)StrokeMiterLimit; c.StrokeStartLineCap = StrokeStartLineCap.ToD2DCapStyle(); c.BorderThickness = BorderThickness.ToD2DThickness(); }