我想在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>
答案 0 :(得分:1)
所以,如果我们去看看Style template,那么我们应该通过所有噪音来解决这个问题;
<VisualState x:Name="DraggingTarget">
<Storyboard>
<DropTargetItemThemeAnimation TargetName="ContentBorder" />
</Storyboard>
</VisualState>
这应该是你可以提出或评论或你想做什么的罪魁祸首。文档更好地解释了DropTargetItemThemeAnimation。希望这有帮助,祝周末愉快!