Xaml Windows 8-自定义ListView滑动偏移量?
我对Windows8很陌生,所以请容忍我。我正在用xaml为Windows 8.1应用商店应用程序设置ListView的样式。我想自定义ListViewItem可以水平滑动以选择它的偏移距离。我已经查看了generic.xaml文件中的ListViewItem和ListView样式,并在我的App.xaml文件中编辑了它们。。。但是我还没有找到做出正确更改的任何设置 在键为ListViewItemExpanded的ListViewItem样式中,我尝试更改ToHorizontalOffset属性:Xaml Windows 8-自定义ListView滑动偏移量?,xaml,listview,swipe,windows-8.1,listviewitem,Xaml,Listview,Swipe,Windows 8.1,Listviewitem,我对Windows8很陌生,所以请容忍我。我正在用xaml为Windows 8.1应用商店应用程序设置ListView的样式。我想自定义ListViewItem可以水平滑动以选择它的偏移距离。我已经查看了generic.xaml文件中的ListViewItem和ListView样式,并在我的App.xaml文件中编辑了它们。。。但是我还没有找到做出正确更改的任何设置 在键为ListViewItemExpanded的ListViewItem样式中,我尝试更改ToHorizontalOffset属性
<VisualState x:Name="HorizontalSelectionHint">
<Storyboard>
<SwipeHintThemeAnimation TargetName="SelectionBackground" ToHorizontalOffset="-23" ToVerticalOffset="0" />
<SwipeHintThemeAnimation TargetName="ContentBorder" ToHorizontalOffset="-23" ToVerticalOffset="0" />a
<SwipeHintThemeAnimation TargetName="SelectedBorder" ToHorizontalOffset="-23" ToVerticalOffset="0" />
<SwipeHintThemeAnimation TargetName="SelectedCheckMark" ToHorizontalOffset="-23" ToVerticalOffset="0" />
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="HintGlyph"
Storyboard.TargetProperty="Opacity"
Duration="0:0:0.500">
<DiscreteDoubleKeyFrame Value="0.5" KeyTime="0:0:0" />
<DiscreteDoubleKeyFrame Value="0" KeyTime="0:0:0.500" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
我还尝试更改ListViewItemReorderHintThemeOffset:
<x:Double x:Key="ListViewItemReorderHintThemeOffset">40.0</x:Double>
在RightReorderHint和LeftReorderHint中使用:
<VisualState x:Name="RightReorderHint">
<Storyboard>
<DragOverThemeAnimation TargetName="ReorderHintContent" ToOffset="{ThemeResource ListViewItemReorderHintThemeOffset}" Direction="Right" />
</Storyboard>
</VisualState>
<VisualState x:Name="LeftReorderHint">
<Storyboard>
<DragOverThemeAnimation TargetName="ReorderHintContent" ToOffset="{ThemeResource ListViewItemReorderHintThemeOffset}" Direction="Left" />
</Storyboard>
</VisualState>
这些都没有任何明显的区别,我不知道下一步该怎么做。建议