示例#1
0
 public static Point GetScreenLocation(this FrameworkElement element)
 {
     return(UIElementTransformUtils.TransformToScreen(element).Transform(new Point()));
 }
示例#2
0
 public static Rect GetScreenBox(this FrameworkElement element)
 {
     return(UIElementTransformUtils.TransformToScreen(element).TransformBounds(element.GetClientBox()));
 }