I want to draw a line on a WPF Grid.
private void InitializeTestline()
{
testline = new Line();
grid.Children.Add(testline);
testline.X1 = 0;
tes
I was doing this same basic thing only on a maze, and this is what i would do
private void Move_Up Click(object sender, RoutedEventArgs e)
{
Point testlinelocation;
testlinelocation = testline.Y1;
testlinelocation.Offset(someX, someY);
testlinelocation = testline.Y1;
}
This should work, it worked for me, best of luck This is in winforms