BezierCurve

FrameworkCodeCopy
WPF C#

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) ] }] } };

WPF XAML

<Path Stroke="Black" StrokeThickness="1" Data="M 50,20 C 230,30 150,80 250,100"/>

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"> <path d="M 50,20 C 230,30 150,80 250,100" fill="transparent" stroke="black" /> </svg>