Tablet WPF Windows Desktop Application - Scrolling issue
In the ScrollViewer
object, where you've enabled the panning, register a new event for ManipulationBoundaryFeedback
.
<ScrollViewer PanningMode="Both" ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback"> <!-- your content is here... --></ScrollViewer>
In the codebehind, you have to handle the event, by setting the Handled
property to true
:
void ScrollViewer_ManipulationBoundaryFeedback(object sender, ManipulationBoundaryFeedbackEventArgs e){ e.Handled = true;}
(By setting the Handled
property to true
, we are actually telling that the event has got handled by us, so we are stopping the message's bubbling process in the Visual Tree, before it would reach the Window
/Application
- whichever would cause the shaking.)