WPF触屏激活滚动条

// XAML代码
<ScrollViewer PanningMode="Both" ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback">
</ScrollViewer>

// CS代码,添加ManipulationBoundaryFeedback事件防止拖动抖动
private void ScrollViewer_ManipulationBoundaryFeedback(object sender, ManipulationBoundaryFeedbackEventArgs e)
{
    e.Handled = true;
}

  

posted @ 2020-11-09 14:34  xiao贝  阅读(119)  评论(0编辑  收藏  举报