Full Screen on Many Screens (WPF)

I am using WPF

I would like my windows to display the full screen of the entire screen.

If I use a code snippet:

WindowState = WindowState.Normal; WindowStyle = WindowStyle.None; Topmost = true; WindowState = WindowState.Maximized; 

only an active screen is required. How to fill the whole screen?

thanks for the help

+4
source share
1 answer

The maximum state of the window fills only one screen. The way windows work in Windows.

You can either create a separate window for each display, or use one window to determine it with the smallest x / y coordinates for all displays and resize it so that you fill each display. You would have to keep an eye on where the screens are on your window surface, although since there are display configurations that you would not expect, for example, the following:

  ┌──────┐
         │ │
         │ │
         │ │ ┌──────────┐
         │ │ │ │
         └──────┘ │ │
     ┌───────┐ │ │
     │ │ │ │
     │ │ │ │
     │ │ └──────────┘
     │ │
     └───────┘

It is completely possible and pain to handle if you expect only rectangular settings.

+3
source

All Articles