How to detect a swivel click to the right or left?

What event is used to determine if the user clicked a right or left turn?

+3
source share
1 answer

An element Pivotuses the angle specified in the FlickEventArgsevent Flickto determine how to navigate through the elements. An angle of 180 degrees means navigation to the right, an angle of 0 degrees means navigation to the left.

If you want to detect this in your own code, you can use the Windows Phone ToolkitGestureService from Silverlight , as described in this article, or you can simply track the property SelectedIndexin the control Pivotto determine how the user clicked.

I would be interested to know for what purpose you are going to use this knowledge :)

+4
source

Source: https://habr.com/ru/post/1791508/


All Articles