I have a UserControl
(boxes) that can have varying size based on the number of items in its ItemsControl
.
Many such usercontrols are added to a Canvas
programmatically.
I need to draw arrows interconnecting these usercontrols. What is the best way to get the origin coordinates of the control w.r.t the Canvas
and the rendered Width
/Height
so that I can figure out the arrow start and endpoints.