private static IEnumerable <Rect> GetSnapBounds(this Window window, bool useWidgetsBounds, bool useFullBounds) { foreach (var bounds in ScreenHelper.GetAllScreenBounds(useFullBounds)) { yield return(bounds); } if (useWidgetsBounds) { foreach (var bounds in App.WidgetViews.Where(x => !x.Settings.Disabled && !x.Equals(window)) .Select(view => view.GetBounds())) { yield return(bounds); } } }
public static bool DoesMonitorHaveFullscreenApp(Rect bounds, Win32App ignoreApp) => DoesMonitorHaveFullscreenApp(ScreenHelper.GetScreen(bounds), ignoreApp);
public static bool DoesMonitorHaveFullscreenApp(Rect bounds) => DoesMonitorHaveFullscreenApp(ScreenHelper.GetScreen(bounds));