Silverlight 4: Any touch library that supports gestures & touch events? - silverlight

Silverlight provides only Touch.FrameReported event and doesnt provide any events for the UIElements like it does for mouse events(ex: MouseDown, MouseUp). Is there any touch library available for the silverlight which provides these touch events and supports gestures.
Google did not help me much or may be my search terms are not correct. Any pointers will be appreciated.

Here is some useful stuff, but it is nowhere near a complete library:
http://www.jebishop.com/2009/11/05/multi-touch-gesture-recognition-in-silverlight-3/

have you seen this article: http://msdn.microsoft.com/en-us/magazine/ee336026.aspx its all about multi-touch support for silverlight

Related

How does touch / gesture support in WPF compare with Windows Store API

I have been looking but have been unable to find as yet a nice comparison of the differences in touch / gesture support between the Windows Store app API's and WPF.
I have seen that WPF includes some basic touch events but do the WPF controls handle gestures such as swipe, hold and tap or would we need to implement our own identification of these getsures using the basic touch events?
Thanks
Gavin
Here is the full list of Windows Store App controls:
wpf controls
When developing a Windows Store App, you will use there controls. They have (where applicable) built in gesture support.

Getting started with UIAutomation

I'm trying to find a good resource to get started with UIAutomation. I need to simulate mouse input in a WPF application. Are there any good examples out there? I couldn't find any, and the MSDN documentation seems too extensive.
UI Automation is not really intended to simulate mouse clicks. It is meant to expose the user interface in a programmatically-accessible fashion.
It organizes controls in a hierarchy that can be easily traversed/navigated by screen readers or similar applications. And, it uses control patterns to allow users to interact with the controls.
A Button for example can expose the InvokePattern via it's automation peer. You can simulate a click using the Invoke method on that pattern. This is done independently of the mouse, so there would be no mouse over/enter/leave/down events, just a Click event.
You can use mouse class with UIAutomation. But as CodeNaked rightly said, we should use UIAutomation patterns for mouse like operations and it is not good practice to use mouse class.
You can refer this code project article to start with UIAutomation.
I hope this will help you.

WPF Map Control with WMS Support

Is anybody aware of a map control for WPF with WMS support that is considered stable? I've been looking around and coming up short on any recent efforts to build a map control for WPF.
I found the Virtual Earth WPF Control. It works fine, but it has a dependency on Bing Maps (as far as I can tell) and the project I'm working on will have a self-hosted WMS server. SharpMap is of interest, but lacks WPF support. WPF SharpMap Controls adds WPF support to SharpMap, but is considered very unstable by its authors due to upcoming changes in SharpMap. I need something more stable today, if possible.
Is anybody aware of a stable WPF map control with WMS support?
SharpMap has good support for WMS.

WPF - InkCanvas touchscreen problem

I'm developing a touchscreen application, touchscreen overlay comes with its own SDK which disables all of the WPF default features. For example if I don't use this SDK i can easily draw on InkCanvas, program sees the overlay as a mouse input, but when I use this SDK it just doesn't recognize gestures, there are great features in SDK so I really want to use that, I can get the position of the touch point so how can I configure the InkCanvas to recognize this point and make me able draw based on this point.
BTW, I can draw with mouse when I use the SDK.
Any idea?
Thanks in advance,
The best way is to not use the SDK if you can help it, and just use a multitouch driver. This simplifies things greatly. Once you have this driver you need to:
enable pen and touch in windows
respond to the TouchDown, TouchMove, and TouchUp events. the touches don't get translated into events the same way mouse clicks / drags do. Look at the "Raw Touch" section of this article.
if you dont have a driver, or you insist on using their SDK, you should still look into the Touch events I listed above, as these are most likely what you need.

Silverlight Windows Phone 7: Gesture events?

I'm mocking up a wp7 app in Expression Blend and looking for set up an event handler in response to certain gestures. Some Bing-ing shows some people recommending to use "on click" or something and check the time between taps oneself, but it seems like there should be an easier way.
Is there an event for Silverlight controls that fires for gestures (or specific types of gestures?)
Silverlight for Windows Phone 7 doesn't natively contain any support for gestures. However, there are a number of options available:
The Silverlight for Windows Phone Toolkit contains a GestureService/GestureListener which I'd recommend looking at first.
Laurent Bugnion has created some MultiTouch behaviours which may be of interest, dependeing on your specific requirements.
A final option would be to use some of the gestures supported by the XNA Framework. Mike Ormond has written a good introduction to using them.
Beyond that you'll have to detect/determine gestures yourself through use of the ManipulationStarted, ManipulationDelta and ManipulationCompleted events. MSDN also has a guide to handling manipulation events which you could also use as a pointer to detecting gestures yourself.

Resources