fix for window resize mode

because the resize mode handles the min/max buttons too
Merge pull request #1197 from MahApps/1194-punker76-handle-window-resizemode

fix for window resize mode