Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I detect that the Windows Mobile transitioned to continuum mode?

Is there a way to detect that Windows Mobile 10 transitioned into continuum mode?

The message-box on Windows Phone does not look anything like the one on Desktop and our designers want parity. I want to write our own version, but I only want it to work on Phone - I want the default one on desktop or when the app transitions to continuum on phone.

Any ideas?

I could not find anything on the web nor find any API that allows me to detect it.

like image 431
Shahar Prish Avatar asked Oct 31 '22 14:10

Shahar Prish


1 Answers

I may be wrong but I don't think there is an API for Continuum. The idea of Continuum for Phone is that you're going from a fixed display size to something that is variable. The best way to detect this would be using the Visual State Triggers or checking if the size of the window has changed.

By also checking that the device family, AnalyticsInfo.VersionInfo.DeviceFamily, is Windows.Mobile, you'll know that you're using a phone device which is currently in the Continuum mode.

like image 138
James Croft Avatar answered Nov 08 '22 08:11

James Croft