WPF wpf scrollviewer 触屏滚动 窗体弹跳
触屏滚动实现
设置属性 在ScrollViewer的xaml代码那里加上
PanningMode=“Both”
在ScrollViewer的xaml代码那里加上
1 ManipulationBoundaryFeedback="SCManipulationBoundaryFeedback"
然后cs里加上
private void SCManipulationBoundaryFeedback(object sender, ManipulationBoundaryFeedbackEventArgs e)
{
e.Handled = true;
}
本文介绍如何在WPF应用程序中通过设置ScrollViewer属性来优化触屏滚动体验,包括使用PanningMode和ManipulationBoundaryFeedback事件处理。
1088

被折叠的 条评论
为什么被折叠?



