WPF 和 Winddows的PrimaryScreen不同用法
Windows form application:
1
this
.Top = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height -
this
.Height;
2
this
.Left = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width -
this
.Width;
WPF application:
1
this
.Top = System.Windows.SystemParameters.WorkArea.Height -
this
.Height;
2
this
.Left = System.Windows.SystemParameters.WorkArea.Width -
this
.Width;
[srouce]http://ahmadreza.com/2009/11/20/screen-size-in-wpf-applications/