Step 1 : MainWindow.xaml.cs Code

<Window x:Class="Drawline.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>
        <Ellipse Height="100" HorizontalAlignment="Left" Margin="94,140,0,0" 
         Name="Ellipse1" Stroke="Black" Fill="Green" StrokeThickness="4" 
         VerticalAlignment="Top" Width="100"/>  
  </Grid>
</Window>

Output :


wpf20