How to change the location (left and top) of the image control in wpf windows application at runtime?
Change the location of control at runtime in WPF application.
Collapse
X
-
To move a control at runtime (in C#):
create a new point:
Code:system.drawing.point pt = new system.drawing.point();
Code:pt.X = newX; pt.Y = newY;
Code:myControl.location = pt; myControl.refresh();
Comment