Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rodrigoelp/wpfgesturerecognizer
- Owner: rodrigoelp
- License: apache-2.0
- Created: 2015-05-18T06:06:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T05:31:48.000Z (over 7 years ago)
- Last Synced: 2025-02-16T11:51:55.483Z (4 days ago)
- Topics: dotnet, gesture, swipe, wpf
- Language: C#
- Homepage:
- Size: 23.2 MB
- Stars: 27
- Watchers: 3
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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