You can use a Shape object, such as Line or Rectangle, in XAML or in code.
For example, using a string in XAML, you can use
<Line X1="10" Y1="10" X2="11" Y2="11" Stroke="Black" StrokeThickness="1" />
X1 is the initial coordinate x. X2 is the coordinate of the end x. Y1 is the initial y coordinate. Y2 is the final y coordinate.
Ronaldv
source share