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