In WP 8.1, how do I remove the default animation in ListView
when an item is tapped and it's skewed/translated in different directions depending on where the tap occurs? I want no item click animation.
相关问题
- How to create Circular view on android wear?
- WP8.1 How to cancel a Background Audio Task in C#
- JSON Exception - No value for wanted parameter
- Android: ListView rounded corner hidden by list it
- windows phone 8.1 music library get current media
相关文章
- Show flyout using BottomAppBar
- Set color of 'empty' area of ListView in A
- Keep constant number of visible circles in 3D anim
- How to overlay items in StackPanel or ListView?
- Animate opacity on hover (jQuery)
- How to highlight multiple items in a list view?
- How to zoom list item from center of pinch
- How to set the image resolution for animations?
The animation comes from the ListView's ItemContainerStyle's "Pressed" state.
In the designer select your ListView, right click, and choose "Edit Additional Templates.Edit Generated Item Container (ItemContainerStyle).Edit a copy..."
This will generate a style with TargetType="ListViewItem":
In the style find the Visual State for "Pressed" and alter or remove the animation:
If you want to replace the animation rather than just removing it then Blend is an excellent tool for editing Visual States and animations. If you're supporting clicking or tapping then you should provide some indication to the user what is going on, but you can change it here to what you need. You can also alter other VisualStates as needed.