Which event is used to determine if the user flicked the pivot right or left?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
Pivotcontrol uses the angle reported in theFlickEventArgsof theFlickevent to determine which way to navigate the items. An angle of 180 degrees means a navigation to the right, an angle of 0 degrees means a navigation to the left.If you want to detect this in your own code you could use the
GestureServicefrom the Silverlight Windows Phone Toolkit as described in this article or you could simply keep track of theSelectedIndexproperty on thePivotcontrol to determine which way the user flicked.I’d be interested to know to what purpose you’re going to put this knowledge 🙂