rurtubia
5/25/2015 - 11:45 PM

Lines and PolyLines in C# XAML Lineas y PolyLineas en XAML C#

Lines and PolyLines in C# XAML

Lineas y PolyLineas en XAML C#

<Window x:Class="DibujandoLineas.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">
    <StackPanel >
        <Line X1="200" Y1="0" 
              X2="100" Y2="100" 
              Stroke="Black"
              StrokeThickness="10"></Line>
        <Polyline Points="0,-100 100,-20 300,-50"
                  Stroke="Red"
                  StrokeThickness="10"></Polyline>
    </StackPanel>
</Window>
Uses XAML to create lines and PolyLines in C#