I am developing windows phone app. I created one user control page for popup window.
But my application is in landscape mode then How to change user control page orientation to landscape mode?
You should set the SupportedOrientations property of all pages to Landscape:
<UserControl x:Class="MyWindowsPhone.Page"
... other attributes omitted
SupportedOrientations="Landscape">
<!-- controls go here -->
</UserControl>
Related
I am creating a website that will be used in a tablet mostly if not always in landscape mode. However, when someone taps into an input box the keyboard takes half the size of the screen in landscape mode which is a lot. It is fine is portrait mode but half the screen is way too much. Is there a way to popup smaller screen in landscape mode using CSS or is this something that has to be done from the browser setting
#jedu you are more user concerned if the user is mostly using the tab or mobile in landscape mode he would have already adjusted it's keyboard size accordingly to be more productive in his task.
The more or less we can do is to make the page appear more accessible in the landscape mode using landscape orientation css by writing media queries.
We can't size the keyboard of the user. But we can prompt a user about changing its keyboard size for more accessibility of the website as a message
is there any correct solution to force the navigation based view controller to landscape mode in iOS7?
If yes, please give me a correct solution.
Note that iOS 7.
I don't want answer for iOS6 or iOS5
UPDATE:
In my case I have an app with more than 10 view conrollers(with Navigation controller).
thats all supports only portrait mode only except one viewconroller.
That one view controller must change to landscape. Then goto next view controller with portrait mode.
Note: iOS7.
How to force a page to stay in horizontal orientation with xaml in a WP8 app?
I.e. the page should only support horizontal and cannot be rotated back to portrait (to play fullscreen video).
Use in page XAML:
SupportedOrientations="Landscape" Orientation="LandscapeLeft"
If you want to know more, here's a MSDN documantation of the SupportedOrientation property:
PhoneApplicationPage.SupportedOrientations Property
How to configure the windows phone to be fixed to only landscape mode, I there any possibility to do it with C# so that I should be able to get the consistent behaviour across the application
You can get it via C#
this.SupportedOrientations = SupportedPageOrientation.Landscape
You should set the SupportedOrientations property of all pages to Landscape:
<UserControl x:Class="MyWindowsPhone.Page"
... other attributes omitted
SupportedOrientations="Landscape">
<!-- controls go here -->
</UserControl>
In my new app, there is a windows phone panorama page. I thought it would be best to enable both Landscape and Portrait orientation. But in Landscape, 40% or the screen space is occupied by the heading, 20% by the sub-heading and only the rest stays for the content.
So my question is: should I disable Landscape mode, let everything as it is or change the design and make e. g. the heading smaller?
I know I can put my content in a ScrollViewer, but it still looks a bit silly.
Yes, Landscape mode should be disabled for Panorama Control. From Panorama control design guidelines
The Panorama control is portrait orientation only. There is no landscape support for the Panorama control. Dialogs launched from within the Panorama control shouldn’t be rotated to avoid jarring experiences.