Ejemplo n.º 1
0
        public static Rect GetCurrentScreenWorkingArea(this Window window)
        {
            var screen = WpfScreen.GetScreenFrom(window);

            return(screen.DeviceBounds); //instead of WorkingArea which on some test less than expected
        }
Ejemplo n.º 2
0
 public static WpfScreen GetCurrentScreen(this Window window)
 {
     return(WpfScreen.GetScreenFrom(window));
 }
Ejemplo n.º 3
0
 public static Rect GetCurrentScreenWorkingArea(this Window window)
 {
     return(WpfScreen.GetScreenFrom(window).WorkingArea);
 }