-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparing orientations? #17
Comments
CrossDeviceOrientation.Current.CurrentOrientation == DeviceOrientations.Portrait |
@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. |
@MagicAndre1981 plugin doesn't provide any solutions out of the box for support from XAML. I think you can implement your case via Xamarin.Forms Triggers. |
any hint how to do this via Triggers? |
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: