public void Init() { LinkedList <ScreenInformation.WpfScreen> screens = ScreenInformation.GetAllScreens(); windows = new List <MainWindow>(); foreach (var screen in screens) { var window = new MainWindow(); Console.WriteLine("Metrics {0} {1}", screen.metrics.top, screen.metrics.left); window.Top = screen.metrics.top; window.Left = screen.metrics.left; window.WindowStyle = WindowStyle.None; windows.Add(window); } }
public static LinkedList <WpfScreen> GetAllScreens() { ScreenInformation.GetMonitorCount(); return(allScreens); }