Exemple #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
        }
 public static WpfScreen GetCurrentScreen(this Window window)
 {
     return(WpfScreen.GetScreenFrom(window));
 }
Exemple #3
0
 public static Rect GetCurrentScreenWorkingArea(this Window window)
 {
     return(WpfScreen.GetScreenFrom(window).WorkingArea);
 }