我想讓用戶在包含ListView的控件上滑動。 下面是示例代碼:對ListView的父對象的操作
<Border ManipulationMode="All"
ManipulationDelta="UIElement_OnManipulationDelta">
<ListView>
<ListView.Items>
<x:Int32>1</x:Int32>
<x:Int32>1</x:Int32>
<x:Int32>1</x:Int32>
<x:Int32>1</x:Int32>
<x:Int32>1</x:Int32>
<x:Int32>1</x:Int32>
<x:Int32>1</x:Int32>
</ListView.Items>
<ListView.ItemTemplate>
<DataTemplate>
<Grid Width="200" Height="50"/>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Border>
出於某種原因,在ManipulationDelta事件是不是養了電話。我該如何解決這個問題?
測試過您的代碼,只有在移動模擬器或模擬器或手機上進行測試時,纔會發生此問題,而不是在PC或本地計算機上進行測試。我對嗎? –
@ GraceFeng-MSFT是的。 – acedened