var idx = 1; // 屏幕序号(0,1,2) this.Left = WpfScreenHelper.Screen.AllScreens.ToList()[idx].Bounds.Left; this.Top = WpfScreenHelper.Screen.AllScreens.ToList()[idx].Bounds.Top; this.WindowState = WindowState.Normal; this.WindowStyle = WindowStyle.SingleBorderWindow; this.WindowStyle = WindowStyle.None; this.WindowState = WindowState.Maximized;
var idx = 1;
WpfScreenHelper.WindowHelper.SetWindowPosition(
this,
WindowPositions.TopLeft,
WpfScreenHelper.Screen.AllScreens.ElementAt(idx));
this.WindowState = WindowState.Normal;
this.WindowStyle = WindowStyle.SingleBorderWindow;
this.WindowStyle = WindowStyle.None;
this.WindowState = WindowState.Maximized;