public static Point GetScreenLocation(this FrameworkElement element) { return(UIElementTransformUtils.TransformToScreen(element).Transform(new Point())); }
public static Rect GetScreenBox(this FrameworkElement element) { return(UIElementTransformUtils.TransformToScreen(element).TransformBounds(element.GetClientBox())); }