You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
Current property has platform implementation of the plugin with interface IDeviceOrientation as a singleton, next step you will need to get CurrentOrientation value and compare with DeviceOrientations enum value:
@wcoder can I also do this check in pure XAML? I want to set Margin/Padding based on Idiom and Orientation status. Currently I do this in code at OnSizeAllocated but here I can't use XAML Reloader tools to see the output if I change values, here I have to compile the app again and run it again.
What is the correct way to do orientation comparisons? I've tried the following, none of which work:
Coming from Swift/Obj-C, I'm sure there is some dumb thing I am doing here. Also, would be great if you included an example like this in the docs.
The text was updated successfully, but these errors were encountered: