Gagan Gadag

Gagan Gadag

  • NA
  • 8
  • 8.6k

Move/resize child controls in grid panel

Apr 13 2022 6:16 AM

Hi,
I have a requirement where child controls inside the grid panel should be movable/draggable to other grid cells. Also, it should be resizable to other grid cell by dragging the child control's border.
For ex, I have a Grid panel with 4 * 4(rows*columns) and having textblock as a child control(Grid.Row=1,Grid.column=2). Now I should be able to move this textblock to other grid cell through mouse event( for ex, Grid.Row=2,Grid.column=3) and resize it to occupy next grid cell (Grid.Row=1,Grid.column=3)

Please let me know how can we achieve it.
Thanks
Gagan


Answers (1)