Hey guys. How I can use only portrait orientation on wp8/winRT device? I edited Package.appxmanifest for RT version, but it didn’t help.
My result is:
and I need next result:
thanks.
example.jpg (17.5 KB)
WhatINeed.jpg (18.3 KB)
Hey guys. How I can use only portrait orientation on wp8/winRT device? I edited Package.appxmanifest for RT version, but it didn’t help.
My result is:
and I need next result:
thanks.
example.jpg (17.5 KB)
WhatINeed.jpg (18.3 KB)
Just change SetWindow method in you “Main” class.
void EduKoalaMain::SetWindow(CoreWindow^ window)
{
// Specify the orientation of your application here
// The choices are DisplayOrientations::Portrait or DisplayOrientations::Landscape or DisplayOrientations::LandscapeFlipped
DisplayProperties::AutoRotationPreferences = DisplayOrientations::Portrait;
...
}
thanks! It real help me