2016-04-14 72 views

回答

0

無需故事板... 只需添加的ScrollViewer到您的代碼

<ScrollViewer 
    VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" PanningMode="Both" ManipulationBoundaryFeedback="ScrollViewerCanvas_ManipulationBoundaryFeedback"> 
    //Add stuff here 
</ScrollViewer> 

在代碼隱藏:

private void ScrollViewerCanvas_ManipulationBoundaryFeedback(object sender, ManipulationBoundaryFeedbackEventArgs e) 
     { 
      e.Handled = true; 
     } 
+0

我通過滾動觸摸屏列表。它工作與否?我沒有其他的滾動查看器。我在TileList中啓用滾動。 – ankit

+0

而我們只需要Horizo​​ntalScrollBarVisibility而不是Verticle。 – ankit

+0

當我使用上面的代碼時,selectionChange事件不適用於Tile List。 – ankit