public static Screen GetScreen(Rect bounds)
 {
     return
         Screen.AllScreens.FirstOrDefault(x => x.Bounds.IntersectsWith(bounds.ToRectangle())) ??
         Screen.AllScreens.FirstOrDefault(x => x.Primary);
 }