How to use right-click-and-drag(mouse) and hold-and-drag(touch) feature to trigger action in UWP


On some desktop browsers, there's a feature called Mouse Gesture. If you right click and hold to draw a right-to-left line, browser will go backward as if you use your finger to swipe from right to left.

On Win 10 UWP, how to write a similar feature, while compatible with touch/phone?


You would need to use a GestureRecognizer.

For a complete sample, see the example in the Microsoft project on GitHub.

Bonus: Raymond Chen Built a samples API concordance that can help you drill down into the Windows Universal API to find the samples you're looking for.

By : theB

This video can help you solving your question :)
By: admin