tags:

views:

560

answers:

1

I like to use a grid to position some objects in WPF, because it cares about the position and stuff. In addition, however I also like to be able to draw accross the cells with a Canvas.

I figured out that this can be done by embedding the grid in a canvas. However in order to connect two elements, I need then the absolute position in pixels.. any ideas?

+2  A: 

From code you can use the UIElement.TranslatePoint() method.

HTH, Kent

Kent Boogaart
will try, thx so far
Nils