WPF 和 Winddows的PrimaryScreen不同用法
Windows form application:
1this.Top = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height -this.Height;
2this.Left = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width -this.Width;
WPF application:
1this.Top = System.Windows.SystemParameters.WorkArea.Height -this.Height;
2this.Left = System.Windows.SystemParameters.WorkArea.Width -this.Width;
[srouce]http://ahmadreza.com/2009/11/20/screen-size-in-wpf-applications/
本文深入探讨了WPF和Windows应用程序在处理屏幕尺寸时的区别,通过实例代码展示了如何根据不同框架特性调整窗口位置和大小,提供了解决屏幕适配问题的有效策略。
1909

被折叠的 条评论
为什么被折叠?



