xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="270" Width="300" Loaded="Window_Loaded">
//File:Window.xaml.cs
using System.Windows;
namespace WpfApplication1
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
plLine.Points.Add(new Point(10, 140));
plLine.Points.Add(new Point(270, 140));
plLine.Points.Add(new Point(10, 175));
plLine.Points.Add(new Point(10, 220));
plLine.Points.Add(new Point(125, 220));
}
}
}