Dual Screen Devices: Detecting Orientation, Status, And Position Changes

Nathan Sokalski 4,111 Reputation points
2020-06-08T19:06:44.54+00:00

I am working on an app (intended for dual screen devices) that uses the TwoPaneView. I need to know the following & detect when they change (regardless of whether the app is using both screens):

Device Orientation - Are the screens above & below each other or side by side?
Screen Spanning - Does the app span both screens?

I have tried using the ModeChanged event of TwoPaneView & the SizeChanged event of the Page, but neither (or at least one of them) seems to be triggered for all scenarios (I have been testing my app using the Microsoft Emulator). What can I do to detect when either of these value changes (and what the current value is)? Thanks.

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-06-09T02:58:31.583+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Your issue about TwoPaneView is more related to WinUI. It's an open-source in Github, you could ask your question in GitHub-issues.

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.