我有一个包含 5 个大矩形的 GridView 页面:
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<GridView Padding="120,90,46,40">
<GridView.Items>
<Rectangle Width="450" Height="300" Fill="Green" Opacity="0.7" />
<Rectangle Width="450" Height="300" Fill="Blue" Opacity="0.7" />
<Rectangle Width="450" Height="300" Fill="Orange" Opacity="0.7" />
<Rectangle Width="450" Height="300" Fill="Green" Opacity="0.7" />
<Rectangle Width="450" Height="300" Fill="Red" Opacity="0.7" />
</GridView.Items>
</GridView>
</Grid>
当向左滚动 GridView 时,左侧矩形“触摸”平板电脑屏幕的左侧,然后所有图块来回“弹跳”几次。
有什么办法可以禁用这种“反弹”效果?我所看到的是,这种“弹跳”与图块的数量和屏幕的宽度有关(在我的例子中是 1366)。当我有超过 6 个图块时,效果不可见。