I want to center my WPF app on startup on the primary screen. I know I have to set myWindow.Left and myWindow.Top, but where do I get the values?
I found System.Wi
System.Wi
There is no WPF equivalent. System.Windows.Forms.Screen is still part of the .NET framework and can be used from WPF though.
System.Windows.Forms.Screen
See this question for more details, but you can use the calls relating to screens by using the WindowInteropHelper class to wrap your WPF control.