コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public static LinkedList <WpfScreen> GetAllScreens()
 {
     ScreenInformation.GetMonitorCount();
     return(allScreens);
 }