0

I have 3 monitors and when I launch a debug session, the WPF app automatically starts 2 screens away from where I am coding. I found the code to specify where on the screen it starts:

        WindowStartupLocation = WindowStartupLocation.Manual;
        Left = 100;
        Top = 100;

but not how to control which monitor it starts on. Since it isn't a Windows Forms app, I can't do something like:

var myApp = InitializeComponent();

So I am not sure what to do next to get control of the window.

Alan
  • 2,046
  • 2
  • 20
  • 43

0 Answers0