开发者

WPF Scrollviewer PanningMode move Window?

开发者 https://www.devze.com 2023-03-24 12:02 出处:网络
I have add a ScrollViewer in my WPF4 Window with Scrol开发者_运维问答lViewer.PanningMode. When I drag scrollviewer on my multitouch screen it\'s OK. But... the Window move with scroll when I arrive on

I have add a ScrollViewer in my WPF4 Window with Scrol开发者_运维问答lViewer.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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消