How can I implement flick in and out animation on a textblock (swipe) in windows mobile 7?
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.
There are two parts to this:
Detecting the flick. – For this I’d recommend staring by looking at the GestureListeners in the toolkit.
Animating the “flick”. – This will depend on the exact animation you are looking for. I’d start by creating three textblock which hold the previous, current and next items in your list. If the user swipes one way (say left to right) I’d animate the previous item in and the current item out such that the previous item ends up in exactly the same position as the current one was originally. When the animations are complete I’d update the contents of each item (based on what’s now current) and then reset each item (without any animation). If swiping in the other direction I’d do the process but with the “Next” item.
WHatever technique you use – be sure to test the behaviour when swiping multiple times in rapid succession. I’ve seen lots of apps do this badly – 🙁