Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Scrollviewer PanningMode move Window?

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?

like image 546
FrenchTouch Avatar asked Aug 02 '11 18:08

FrenchTouch


1 Answers

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.

like image 150
H.B. Avatar answered Sep 22 '22 12:09

H.B.