Silverlight Treeview item Coordinates
I am new to silverlight and stuck with a problem. I am trying to find out the coordin开发者_如何学运维ates of a treeviewitem. Can someone help me out?
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
精彩评论