How can I change the location element (Line) in C# code?
<Grid x:Name="SetShipsGrid">
<Path Name="Line" Stroke="red" StrokeThickness="1" >
<Path.Data >
<GeometryGroup>
<LineGeometry StartPoint="50,50" EndPoint="350,50"></LineGeometry>
</GeometryGroup>
</Path.Data>
</Path>
</Grid>