GoXam for WPF v3
GetRelativeElementPoint Method
Northwoods.GoXam Namespace > Part Class : GetRelativeElementPoint Method
a FrameworkElement within this part
a Spot; if the spot Spot.IsNoSpot assume Spot.Center instead.
Compute the point of a spot in a FrameworkElement that is within the visual tree of this part, relative to the top-left corner of this part.
Syntax
public Point GetRelativeElementPoint( 
   FrameworkElement elt,
   Spot spot
)

Parameters

elt
a FrameworkElement within this part
spot
a Spot; if the spot Spot.IsNoSpot assume Spot.Center instead.

Return Value

a Point in model coordinates, taking any transforms into account, assuming the bounds are at (0,0)
Remarks
This can produce a useful value even when the part has not yet been positioned, i.e. with its (X,Y) being (NaN, NaN), if the part is in the rooted visual tree.
See Also

Reference

Part Class
Part Members
GetElementPoint Method
GetElementBounds Method