using System.Windows.Media;
using System.Windows.Shapes;
//...
Path path = new()
{
Stroke = Brushes.Black,
Fill = Brushes.Transparent,
StrokeThickness = 1,
HorizontalAlignment = HorizontalAlignment.Left,
VerticalAlignment = VerticalAlignment.Center,
Data=new PathGeometry
{
Figures = [
new PathFigure{
StartPoint = new Point(0,0),
Segments = [
new BezierSegment(new(230,30), new(150,80), new(250,100), true)
]
}]
}
}; |