When creating a WPF window with AllowsTransparency="True" WindowStyle="None"
and maximizing it via this.WindowState = WindowState.Maximized;
the Window gets bigger than my screen.
When setting AllowTransparency="False"
i have a border around my Window, but the window won't get bigger than my screen.
In my Case I have a 1920x1080 screen and the window becomes 1934x1094.
On my 1280x1024 screen the window will become 1294x1038.
The Window will become still as big as this, whether or not AllowTransparency is enabled or not, yet with it disabled it works properly.
Setting AllowTransparency before maximizing doesen't work and throws an InvalidOperationException.
How to get a WPF window without a Windows-style border, but yet to maximize properly?