我们有一个在Win 7上运行的WPF应用程序,在Win 7中打开触摸手势时,当滚动ListView时,当到达列表的末尾时,该应用程序会在屏幕上“耸肩”。
这也可以在Internet Explorer中重现。如果您加载的网页足够长,可以产生滚动条,Windows在使用触摸手势滚动时,会在到达页面底部时“耸肩”IE。
有没有办法在Windows中关闭耸肩,或者用我的WPF应用中的代码以某种方式禁用它?我需要和你保持联系,别再提这个问题了。
发布于 2012-01-30 18:31:34
处理ManipulationBoundaryFeedback (即e.Handled = true)。
发布于 2015-01-15 15:17:12
如果要禁用窗口中所有控件的边界,应将ManipulationBoundaryFeedback句柄放在窗口的第一个面板上,而不是放在窗口本身上。
不起作用:
<Window x:Class="TestControls.BoundaryFeedback"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ManipulationBoundaryFeedback="Control_ManipulationBoundaryFeedback"
>
</Window>作品:
<Window x:Class="TestControls.BoundaryFeedback"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Grid ManipulationBoundaryFeedback="Control_ManipulationBoundaryFeedback">
</Grid>
</Window>在后台代码中:
private void Control_ManipulationBoundaryFeedback(object sender, ManipulationBoundaryFeedbackEventArgs e)
{
e.Handled = true;
}发布于 2011-07-05 12:47:11
您可以在系统范围内禁用边界反馈。
它在“画笔和触摸”控制面板的平移选项卡上。
http://www.youtube.com/watch?v=OObTOSglE1w
https://stackoverflow.com/questions/4451873
复制相似问题