Exemplo n.º 1
0
        public static WPFRect GetBounds(WPFPoint p)
        {
            var rect = WinScreen.GetBounds(
                new WinPoint(
                    (int)p.X,
                    (int)p.Y));

            return(new WPFRect(
                       new WPFPoint(rect.X, rect.Y),
                       new WPFSize(rect.Width, rect.Height)));
        }