I\'ve been trying to get my WPF application to span multiple monitors for some time now and nearly have it working.
The problem seems to arise when I set the followi
If you can always assume that your secondary monitor is at the same resolution as the primary, you could implement something like this:
// Use this is you are concerned about the taskbar height Rect workArea = SystemParameters.WorkArea; this.Width = SystemParameters.PrimaryScreenWidth * 2; this.Height = workArea.Bottom; this.Left = 0; this.Top = 0;
Or:
// Use this is you don't care about the taskbar height this.Width = SystemParameters.PrimaryScreenWidth * 2; this.Height = SystemParameters.PrimaryScreenHeight; this.Left = 0; this.Top = 0;