views:

150

answers:

1

Hi,

I am new to silverlight and stuck with a problem. I am trying to find out the coordinates of a treeviewitem. Can someone help me out?

+1  A: 

I have found a way to get the coordinates.

GeneralTransform objGeneralTransformFlag = flagItem.TransformToVisual(Application.Current.RootVisual as UIElement);

Point pFlag = objGeneralTransformFlag.Transform(new Point(0, 0));

where flagItem is the treeViewItem

ARS