Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rodrigoelp/wpfgesturerecognizer

The WPFGestureRecognizer is a library for .net framework applications based on WPF to wrap around UIElement's manipulation API, digesting and processing the events into gestures (swipes, taps, multi-touch) so developers can mimic the behaviour on WinRT apps in WPF. If you want to know more about the project, read the readme.md file.
https://github.com/rodrigoelp/wpfgesturerecognizer

dotnet gesture swipe wpf

Last synced: 4 days ago
JSON representation

The WPFGestureRecognizer is a library for .net framework applications based on WPF to wrap around UIElement's manipulation API, digesting and processing the events into gestures (swipes, taps, multi-touch) so developers can mimic the behaviour on WinRT apps in WPF. If you want to know more about the project, read the readme.md file.

Awesome Lists containing this project

README

        

## What is WPF Gesture Recognizer?

Windows Tablets are slowly taking a market and some software developers feel the need to move their applications to a modern UI, similar to those offered by WinRT.

Sadly at the moment, there is no gesture recognition built in for Windows Presentation Foundation applications, and there are applications bound to Windows Desktop Mode. For them, needing to perform Swipes on a tablet on a desktop application there was no support although .net Framework exposes some events that can be used to implement said gestures.

This library wraps those events so you don't have to go through the same process we had to do so implement something as basic as a gesture for a touch device.

## Code Example

Grab [WPFGestureRecognizer from NuGet](https://www.nuget.org/packages/WPFGestureRecognizer/) and add it to your references in your project (On Visual Studio is just add a nuget package to your WPF application).

Then on your xaml page you should add a recognition area. It can be any [UI element](https://msdn.microsoft.com/en-us/library/system.windows.frameworkelement%28v=vs.110%29.aspx) such as a Border or a Grid. Add [`System.Widnows.Interactivity`](https://msdn.microsoft.com/en-us/library/system.windows.interactivity\(v=expression.45\).aspx) and `Org.Interactivity.Recognizer` and off you go.

#### Simple example To start with:
```xml







```

## Contributors

**Want to contribute? Or add more gestures like rotation, skew, and/or zoom?**

Submit your pull request!

**Want a specific gesture?**

Create an issue to be able to track it.

## License
Distributed under Apache License v2.0