wcoder / Xamarin.Plugin.DeviceOrientation

Cross-platform plugin to work with screen orientation of mobile device.
MIT License
61 stars 19 forks source link

How can I set to default the orientation of the App to Landscape? #15

Closed RanielQuirante closed 6 years ago

RanielQuirante commented 6 years ago

How can I set to default the orientation of the App to Landscape? then actually just locking and never allowing the user to put the app into portrait mode?

wcoder commented 6 years ago

Hi, what platform? or Forms?

If you want to lock orientation on the whole app you need to use platform-specific practice, like this: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/device-orientation?tabs=vswin (just select supported orientation what you want)

RanielQuirante commented 6 years ago

Thanks for pointing this out for me, you were really helpful!