How can I rotate an image with a gesture recognizer? With one finger. Do I have to use a pan recognizer?
With PinchGestureRecognizer you can implement rotating
MR.Gestures has implemented the rotation gesture you could consume it: https://www.mrgestures.com/
Here is the sample: https://github.com/MichaelRumpler/GestureSample/tree/master/GestureSample/GestureSample/Views
that NuGet costs 40 euro tho?
LandLu Is it possible to make a circular swipe gesture recognizer?
@LandLu what does consume it mean? It looks like you need a license to use that nuget?
@igorkr_10 Do you how to get the x and y translation of a content page? App.Screenheight and such solutions returns a number that is not compatible with the translation values. I am trying to find the x and y translation values in the middle of the screen (center horizontal and vertical).
@Jane_Natalie I think you get ScreenHeight in pixels. Default XF units are 160 unit/inch
Try to use Page height (which measures in standard XF units) like there or just by overriding method OnSizeAllocated in your view instead of ScreenHeight.
Also I wrote properties in my App.cs:
public static double ScreenWidth
public static double ScreenHeight
And normally translation is 0 for every element in page. It is only used for setting offset to element. F. e. when you change TranslationX the X coordinate of view doesn't change.
Note: if you want to rotate view use Rotation property
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies