【发布时间】:2016-02-19 14:38:30
【问题描述】:
我想去掉gridview中的gridviewitem后的动画效果。 我已将 ItemContainerStyle 编辑如下,但不知道必须更改哪些 VisualStates
<GridView SelectionMode="None" Margin="10" AllowNewGroup="True" ScrollViewer.HorizontalScrollBarVisibility="Visible"
ScrollViewer.HorizontalScrollMode="Enabled" BeforeDrop="MyGridView_BeforeDrop"
Drop="MyGridView_Drop" AllowDrop="True" CanReorderItems="True"
CanDragItems="True" IsSwipeEnabled="True" ItemsSource="{Binding}"
ItemTemplate="{StaticResource ItemTemplate}" >
<GridView.ItemContainerStyle>
<Style TargetType="GridViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="GridViewItem">
...
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</GridView.ItemContainerStyle>
</GridView>
【问题讨论】: