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