Hello,
We are doing system testing of our application before we ship. We have noticed on some computers there is a bit of a problem with going from a smaller resolution to a larger resolution. Here is an example of a window that went from 800x600 to 1920x1080:
Notice how there is a large black area where the window is supposed to layout. Even if you shrink then maximize the window, the black area remains. We do not know why this happens, however, We noticed that it does not happen with all machines. We have identified that it always happens on a Surface Pro 1 and I imagine the 2 as well. This happens in our application as well as the sample applications shipped with the Ribbon SDK.
There is a related problem with Screen Rotation as well on the surface. Here is what the SDK sample looks like when it is in landscape orientation:
Here is the result of the window when the Surface Pro is rotated to portrait orientation:
To attempt to solve this, I added the following to my ribbon window:
Microsoft.Win32.SystemEvents.DisplaySettingsChanged += (o, args) => this.UpdateLayout();
The event does indeed fire. However it does not fix the layout of the window.
Any insight on how to fix the problem would be helpful.
Thanks. Brett