Step 1: MainWindow.xaml
<Window x:Class="LineDrawing.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Path Stroke="Green" StrokeThickness="5">
<Path.Data>
<LineGeometry StartPoint="20,30" EndPoint="200,200">
</LineGeometry>
</Path.Data>
</Path>
</Grid>
</Window>
|
Output :