View Single Post
Old 01-08-2008   #1 (permalink)
Ofer
Guest


 

Finding edge coordinates of elements

Hello,

I'm looking for a way to find a bounding box around controls. Specifically,
i would like to find the edge points of an image xaml control
programattically (top right, bottom left).

I tried using a GeneralTransform to transform my control to its ancestor
then trying to transform a couple of different points, but that didn't work
as i don't have access to the edge points to begin with; just margins.

Is there some sort of easy way to figure out where those points are?

Thank you,
-- Ofer