Marc Schweigert in public sector just announced the availability of touch.codeplex.com, a set of multi-touch behaviors for WPF 3.5sp1, Silverlight 3 and Silverlight 4.
The APIs in WPF4 plus the Surface Toolkit for Windows Touch make building common touch scenarios easy. However, implementing many of the same touch scenarios using WPF3.5SP1 or Silverlight 3/4 involves writing a fair bit more code. Furthermore, the touch APIs across WPF4, WPF3.5SP1, and Silverlight are different.
The goal of this project is to simplify building common touch scenarios when using WPF 3.5 SP1 or Silverlight 3/4 by using Expression Blend Behaviors to provide a consistent way to implement these scenarios across WPF & Silverlight. Expression Blend Behaviors can be used within Visual Studio without a dependency on Expression Blend by downloading the Expression Blend 3 SDK.
- Beta Release of core Scroll and TranslateRotateScale behaviors to developer community.
- Revised Scroll and TranslateRotateScale behaviors
- Hold Menu (Single Finger Touch & Hold Context Menu)
- Draw (Three Finger Pen Grasp)
- Erase (Fist Wipe)
- Create (Single Finger Draw '+')
- Clone (Two Finger Double Tap)
- Delete (Single Finger 'X' Drawn Over Target)
- Open / Edit (Single Finger Double Tap)
- Select (Single Finger Tap)
- Select Lasso (Single Finger Draw Lasso)
- Global Rotate (Five Finger Grab and Rotate of Application)
- Global Perspective Rotate (Five Finger Pressure to Rotate Application Perspective)
This is a huge plus for touch developers. WPF 4 along with the upcoming Surface Toolkit has great support for touch and gestures, and now this evens the playing field across Silverlight 3 and 4 as well as WPF 3.5sp1.
Kudos to Marc, James, Tanagram and their team for putting together such a awesome resource.