Search This Blog

Showing posts with label Lune. Show all posts
Showing posts with label Lune. Show all posts

Thursday, October 13, 2016

Round line WPF code behind

WPF > Line 


Line line = new Line
{
 Stroke = Brushes.Blue,
 StrokeThickness = 18,
 StrokeStartLineCap = PenLineCap.Round,
 StrokeEndLineCap = PenLineCap.Round,
 Height= 50,
 X1 = 50,
 X2 = 100,
 Y1 = 10,
 Y2 = 10
};
canvas.Children.Add(line);