Questions tagged «screen-positioning»

8
如何在屏幕上居中放置WPF应用程序?
我想在启动时在主屏幕上将WPF应用居中。我知道我必须设置myWindow.Left和myWindow.Top,但是我从哪里得到这些值? 我发现System.Windows.Forms.Screen.PrimaryScreen,显然不是WPF。有WPF替代方案可以给我屏幕分辨率或类似的东西吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.