WPF wpf scrollviewer 触屏滚动 窗体弹跳

触屏滚动实现

设置属性  在ScrollViewer的xaml代码那里加上

PanningMode=“Both”

 

 

在ScrollViewer的xaml代码那里加上

1  ManipulationBoundaryFeedback="SCManipulationBoundaryFeedback"

 

然后cs里加上

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

 

posted @ 2017-01-10 15:24  Hao0  阅读(2466)  评论(0编辑  收藏  举报