0

For C# WPF, there is a event handler MouseWheel for scrolling using mouse wheel. Is there any similar event handler for scrolling using touch/panning?

Kenvin
  • 73
  • 1
  • 2
  • 7

1 Answers1

0

If you are using a ScrollViewer and you have touch hardware (which causes manipulation events to occur), then you can use the PanningMode property.

If you don't have touch hardware, and you want the mouse to be used for panning, then you can add some additional behaviour to a ScrollViewer to support that.

If you want a normal mouse to be able to generate cause "manipulation" events to occur (i.e. simulate a touch device)....then you can use the MultiTouch SDK to provide a new device that will map mouse events to touch ones - something you don't normally get.

If you have want to handle manipulation events (via real touch hardware, or the simulated one via MultiTouch SDK), and have PanningMode work at the same time on the ScrollViewer...use this.

Community
  • 1
  • 1
Colin Smith
  • 12,375
  • 4
  • 39
  • 47