WPF Scrollviewer PanningMode move Window?

烈酒焚心 提交于 2019-12-20 20:34:26

问题


I have add a ScrollViewer in my WPF4 Window with ScrollViewer.PanningMode. When I drag scrollviewer on my multitouch screen it's OK. But... the Window move with scroll when I arrive on top scroll or bottom scroll. How can we avoid this?


回答1:


Edit: To complete the answer: There is a native event for this which can just be marked as handled: ManipulationBoundaryFeedback

This movement is called boundary feedback which is governed by the operating system (can be set by users in the Pen and Touch settings on the Panning tab). I do not know if the Windows API allows you to prevent it, this page might be relevant.



来源:https://stackoverflow.com/questions/6916574/wpf-scrollviewer-panningmode-move-window

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!