kolorowezworki
kolorowezworki

Reputation: 19

WPF application cannot be fully maximized

I have an application with window properties set to

WindowState="Maximized" WindowStyle="None"

When I minimize it and maximize again, it not fill whole screen, so Windows start bar is visible and there is a strange margin on bottom and right of app window.

Problem exists only on Windows 10 LTSB 2016. On normal Windows 10 everything seems to be ok.

I tried to force set height and width related to screen resolution and force set Left and Top of window. Didn't help.

Upvotes: 0

Views: 173

Answers (1)

JohnnyQ
JohnnyQ

Reputation: 1611

Make sure ResizeMode=ResizeMode.NoResize is set on your window, before you change to maximized window.

Upvotes: 1

Related Questions