开发者

Silverlight Treeview item Coordinates

开发者 https://www.devze.com 2022-12-20 08:54 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消