GraphicsAdapter.DefaultAdapter.CurrentDisplayMode Updating

Hi,
I’m building an app for a windows tablet and I noticed that GraphicsAdapter.DefaultAdapter.CurrentDisplayMode does not update when rotating the screen.
This is important, as my OnResize() method relies on the current Width and Height of the display to not go out of bounds in windowed mode.

When starting out in Landscape mode the CurrentDisplayMode.Width is 1920 and will stay like this regardless of actual screen orientation.
The same is true when starting in Portrait mode, only with the value 1080.

Is there currently a way to force the CurrentDisplayMode to update and display the real values?

Regards,
Dokug

Do you want it to be in that orientation?

You doing UWP?

You can set the allowed orientations in the project properties…

I want it to accept any orientation the user rotates his device to.
Therefore, I’ve allowed all orientations.

It is a WindowsDX project.

Desktop?

Yes

OK, hopefully someone with experience can chime in, but you may want to set the resolution and aspect ratio in code so that it is always the same in any orientation but then keep in mind that portrait will have borders and shrink in size.

I took a quick look at the code.
I seems that the value is set during the creation of the Adapter class and never gets updated.