Remember and restore WPF window's scren, WindowState and position?
As part of my application settings, I store the last position on the workspace of the window and it's WindowState. I can successfully rest开发者_如何学JAVAore the position, even on another screen, but one thing I can't... Maximize the application on a non-primary screen.
So, if my application closes when maximized on screen 2, I want to restore it maximized on screen 2. How do I do this?You have to do it in the loaded event. See: http://mostlytech.blogspot.com/2008/01/maximizing-wpf-window-to-second-monitor.html
精彩评论