<Window x:Class="LineWithPolygon.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>
        <Polygon Points="50,100 200,100 200,200 300,30" Stroke="Red" 
        StrokeThickness="3" Fill="Yellow"/>  
    </Grid>
</Window>

Output :


wpf26