How to restrict user from switching from tablet mode () in retargeting Windows 8.1 to Windows 10? - windows-store-apps

I have created an app in Windows 8.1 and running it on Windows 10 tablet, but I want to run the app in landscape mode only.
How can I restrict the user from switching to tablet mode from the action center?

but i want to run app in landscape mode only
You can add InitialRotationPreference in your package manifest:
<InitialRotationPreference>
<Rotation Preference="landscape"/>
</InitialRotationPreference>
This will keep your app displaying in landscape and will not change the orientation when device is held in Portrait or Portraitflipped.
Foe more details, see InitialRotationPreference.
need to restrict user to switch tablet mode from action center.
Check the last FAQ in the documentation:
screen rotation is not necessarily related to tablet mode. Screen rotation is tied to your current device configuration which may or may not map to whether the device is in “tablet mode”.
Updated:
The ConvertibleSlateModePromptPreference is for OEMs. There does not exist a WinRT API to realize this currently.

Related

How to emulate windows laptop screen resolution and size to test frontend created on Macbook Retina screen?

I'm working on a web app frontend on a MacBook with Retina screen, but the app users primarily use windows laptops with 13/14" screens, and my frontend looks too big for them.
How can I accurately emulate windows laptops' screen size and pixel size/density to adjust my UI responsiveness?
I saw some online services where you can enter the link to preview it on different devices, but the app is on my localhost, which doesn't wok there. Is there any other solution?
in google chrome open your app,
Press F12 to open dev tools
Now click on mobile emulator
then you can change the resolution from here and select responsive dimensions.

How can I troubleshoot HTML/CSS on my mobile phone running a chrome browser?

I use Chrome Debugger on my PC to debug my web application, and it has a new handy feature where I can set the debuger to a mobile device, in this case Iphone 7.
Supposedly this allows you to emulate a mobile device. However, despite doing this I am getting different results, that is, it is not emulating the iPhone 7 device accurately.
There is an SVG component completely missing in the mobile browser. Very odd.
I have never troubleshot my web app on a mobile device, but need a means to do this. I also need a means to report the debugger as not accurately emulating the mobile device.
I did some googling and found this SO Q/A, however it is about 10 years old.
Here is a screen shot of the emulator and the icon that is actually missing on my mobile device:
Those situations are tricky...you need to use a device emulator such as https://crossbrowsertesting.com/

Changing Supported Page Orientation programmatically for Windows 8.1 Phone

My application supports both Portrait and Landscape orientations and automatically adapts UI to screen size. However I want to provide an option to lock the screen at current orientation.
If I just stop processing SizeChanged event, it doesn't help, since system still rotates the UI page, so it appears squeezed and truncated.
According to MSDN there is a way to set up supported orientations programmatically in Xna and Silverlight or Windows API (which is disallowed to use by Windows Store App). Is there a way to do that for an Universal app (Windows 8.1 or Windows 10)?
You can control this by setting the DisplayInformation.AutoRotationPreferences.
e.g.
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;
set it to .None if you want to support both.

WinPhone 8 Landscape splash screen

I'm creating a Xamarin.Forms app which will work in landscape mode.
I want the WinPhone8 splash screen in Landscape only.
However, the splash image is shown in Portrait at first, and then rotated to landscape when the SupportedOrientations is set.
How do I get the splash screen in landscape?
I think landscape splash screens aren't supported on Windows Phone.
If it's a universal app you could try the method below, but I'm not sure if it only works on Windows Store apps.
Open up your app's manifest file and see if there is something like this in there;
<InitialRotationPreference>
<Rotation Preference="landscape"/>
<Rotation Preference="landscapeFlipped"/>
</InitialRotationPreference>
If not, add it :)
This tells your app to tell the OS that it wants to be in landscape initially.

Chrome kiosk or fullscreen in extended mode screen (two monitors)

Is it possible to make a Chrome window display in kiosk mode on two monitors in Windows 7?
I know this thread is 3 years old but since this is still one of the first results in google search for this topic, I thought it wouldn't hurt to point out that you can accomplish this if you have a normal nVidia gtx card (no need for a Quadro/mosaic), by going to the nVidia control panel, on the left click on Configure surround, physx and then configure in the Configure surround section.
From there you can enable the nVidia surround feature which will make windows believe it has one monitor with a custom resolution (which will be the sum of your multiple monitors res). If you have 3 1920x1080 monitors it will show a single monitor with a resolution of 5760x1080. Once you've done that you just have to enable kiosk mode like always and chrome will open up as expected, with a single ultrawide full-screen window across all the three displays.
Like #Alir user said in that post (How to extend chrome browser to dual display on fullscreen) it could be done with nVidia desktop mosaic feature on Windows.
AMD graphic card users have option to create one monitor too in AMD catalyst center under Multiple monitor option.
Then all you need to do is press F11 in Chrome and display page across all monitors.