我想打开幻灯片功能GridView
,所以我使用操作但它不起作用,这里是 XAML 代码:
<GridView x:Name="DaysGridView" HorizontalAlignment="Right" IsItemClickEnabled="True"
ManipulationMode="All" ManipulationInertiaStarting="DaysGridView_ManipulationInertiaStarting"
ManipulationStarting="DaysGridView_ManipulationStarting"
ManipulationStarted="DaysGridView_ManipulationStarted"
ManipulationDelta="DaysGridView_ManipulationDelta"
ManipulationCompleted="DaysGridView_ManipulationCompleted"
ItemClick="DaysGridView_ItemClick"
SelectionChanged="DaysGridView_SelectionChanged">
当我用鼠标滑动时,它可以工作;但是当我在 Windows 模拟器的“基本触摸模式”中滑动时,它不起作用;如果我更改GridView
并Grid
添加上述操作事件,它也可以工作。那么,我怎样才能使操纵起作用GridView
呢?