Question

System: Microsoft Surface, Windows 8.1 (Not Win RT)

When I start the Application and activate the keyboard, it looks like this in

portrait: enter image description here

landscape: enter image description here

As you can see the keyboard fits and the window size is maximized. When I continue to rotate the surface multiple times, I sometimes get this: enter image description here

The window is not maximized any longer. This can only be fixed by manually maximize the window again. Any Idea how I can fix this issue?

Was it helpful?

Solution

Solved this by my own in the meantime. I added an event handler to Microsoft.Win32.SystemEvents.DisplaySettingsChanging

Doing a short Thread.Sleep on UI Thread. The issue occures because the keyboard flip reacts faster then my own application. I know it's a workaround but the sleep is just 200 ms and it works like charm

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top