I wrote custom window. That already handle wm_getminmaxinfo to prevent taskbar dissapearing.
But on tablet after screen rotate to portrait there issue with invalid size. Something like:
https://stackoverflow.com/questions/29141704/how-to-handle-rotation-of-wpf-application-to-be-used-on-tablets
https://github.com/fluentribbon/Fluent.Ribbon/issues/180
https://social.msdn.microsoft.com/Forums/en-US/8b58260e-c809-4f5d-a2f7-09102b051e67/big-wpf-rendering-bug-wpf-application-do-not-refresh-after-screen-rotation?forum=wpf
Reproducible rotate problem only on tablet (win 10 x86).
Some tricks like setting windowstyle after WM_DISPLAYCHANGE dont help.
This bug since 2010 not fixed.