c# - WPF Maximized Window bigger than screen -


when creating wpf window allowstransparency="true" windowstyle="none" , maximizing via this.windowstate = windowstate.maximized; window gets bigger screen.

when setting allowtransparency="false" have border around window, window won't bigger screen.
in case have 1920x1080 screen , window becomes 1934x1094.
on 1280x1024 screen window become 1294x1038.
window become still big this, whether or not allowtransparency enabled or not, yet disabled works properly.

setting allowtransparency before maximizing doesen't work , throws invalidoperationexception.

how wpf window without windows-style border, yet maximize properly?

it seems pretty common issue. appears you'll have bind height , width actual height/width of screen stated in stackoverflow post:

borderless window application takes more space screen resolution.

i hope solves issue you're facing.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -