通过下面的代码,我创建了一条曲线。我想在曲线的末尾有一个箭头头?
PathGeometry myPathGeometry = new PathGeometry();
// Create a figure.
PathFigure pathFigure1 = new PathFigure();
pathFigure1.StartPoint = new Point(From.X, From.Y);
pathFigure1.Segments.Add(
new BezierSegment(
new Point(intermidate.X, intermidate.Y),
new Point(intermidate2.X/2, intermidate2.Y/2),
new Point(To.X, To.Y),
true /* IsStroked */ ));
myPathGeometry.Figures.Add(pathFigure1);
myPath.Stroke = Brushes.Red;
myPath.StrokeThickness = 4.0;
myPath.StrokeStartLineCap = PenLineCap.Triangle;
myPath.StrokeEndLineCap = PenLineCap.Triangle;
myPath.Data = myPathGeometry;
如何在曲线末尾添加箭头?
请通过代码建议一个好方法。
谢谢!