I want to Draw a line segment in windows store apps from code behind i.e from .cs file not from design i.e. not from XAML.
I have a line drawn from desgin Part
<Line Grid.Row="0"
Margin="25,0,0,0"
Stroke="#515459"
StrokeThickness="2"
X2="1000" />
I want very similar kind of line to be drawn from code behind. so please provide some suggestion .
Thanks in advance.