I added a rectangle to the canvas, like this:
Canvas.SetTop(myRectangle, 150);
Canvas.SetLeft(myRectangle, 80);
canvas.Children.Add(myRectangle);
Now I want to move the rectangle to another place, say (100, 100). What is the best way to do this?
Thank!
user242408
source
share