开发者

Subtle WP7 Pivot ListViewItem Animation

开发者 https://www.devze.com 2023-01-25 21:32 出处:网络
Does anyone have some WP7 code for the animations within the ListItem descriptions that animate for each ListItem when using the Pivot control (there is an example within the default WP7 settings app)

Does anyone have some WP7 code for the animations within the ListItem descriptions that animate for each ListItem when using the Pivot control (there is an example within the default WP7 settings app)? You will see as you flick between each pivot th开发者_StackOverflow中文版ere is a subtle animation on each description that describes what the setting does.

Any help would be appreciated.


I assume that you are refering to the system item on the SETTINGS page. WHen you move to that item

You could create a storyboard to animate the movement of the textblock based on teh SelectionChanged event and then looking at which item is selected based on SelectionChangedEventArgs.AddedItems.

The animation in the settings app alters based on which direction you swipe in to get to the item. Unfortunately there's no property to tell you this.
However, if you had more than 3 items in your pivot you could work out which direction you'd swiped based on the previously selected item. If you only had 2 items in your pivot you'd need to also track Manipulation events to try and determine this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号