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.
Related
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/
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.
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.
I am working on a project in which it is required to add capabilities to a website by which a user can pin the site to the start screen of Windows 8.1.
This can be done by adding some "meta" tags in the head section of the HTML page.
I just have one question whether large tiles are supported on Windows 8.1 Tablet or not.
It is stated here that large tiles are not supported on Windows Phone. Does this mean that large tiles are supported on Windows 8.1 Tablet or not?
Yes you can have live tiles for your website and they will work on windows phone. Scott Hanselman wrote a nice blogpost on how this can be achieved.
Update:
Yes large tiles are supported on Windows 8.1 i.e. a tablet. You can see it when you pin hanselmans or my blog to the start menu.
In my windows phone app, I have a textbox which has to be displayed when certain conditions are met. If not, it should behave like Visibility.Gone in Android.
How should I do that in a windows phone app?
The corresponding visibility on the WinPhone platform is Visiblity.Collapsed
Visiblity.Collapsed in Windows is same as Visibility.Gone in Android. In windows Elements that have a Visibility value of Collapsed do not occupy any layout space and there is nothing which is equivalent to Visibility.InVisible of Android