如何设置WPF应用程序的高度和宽度最大化? 问题我面对的是因为windows任务栏在不同计算机上的变化高度WPF应用程序最大化问题
目前,我是这样做的。请提出更好的技术
if (this.WindowState == WindowState.Maximized) { this.Height = primaryScreenHeight - 10 - System.Windows.Forms.SystemInformation.SizingBorderWidth; this.Width = primaryScreenWidth + 2 * System.Windows.Forms.SystemInformation.FrameBorderSize.Width; }
对不起 - 你能解释一下你的问题好一点吗 - 我不明白为什么正常最大化是不够的? – 2010-04-29 14:40:32