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:
set the new co-ordinates:Code:system.drawing.point pt = new system.drawing.point();
set the co-ordinates of your control:Code:pt.X = newX; pt.Y = newY;
and the control should have moved.Code:myControl.location = pt; myControl.refresh();
Comment