Is there a way to touch-enable scrolling in a WPF ScrollViewer? Is there a way to touch-enable scrolling in a WPF ScrollViewer? wpf wpf

Is there a way to touch-enable scrolling in a WPF ScrollViewer?


You should use the attached properties:

  • ScrollViewer.PanningMode
  • ScrollViewer.PanningDeceleration
  • ScrollViewer.PanningRatio

The PanningMode defaults to None in the ScrollViewer default style, but setting it to another value will enable touch scrolling. I'm currently investigating using this feature in my app and am looking for a good deceleration and ratio value... I'll probably just have to test them out to find something that works well.


If you are using .NET 4.0, there is a cool thing recently released by Microsoft team!! They ported all those nice Surface controls to Win7. SurfaceScrollViewer is really cool like iphone one. Install this toolkit and start a SurfaceWin7Touch project from VS2010 project templatehttp://www.microsoft.com/en-us/download/details.aspx?id=26716