On this page https://github.com/Polymer/polymer-gestures it says that polymer-gestures is deprecated. The polymer 1.x gesture events don't include a hold event. Before going to implement my own gesture regognizer based on down, up and a timed task, I would like to know if there are plans to add a 'hold' or 'long press' gesture, or if there is already an implementation that plugs into the gestures system?
Related question: How to implement long-press event using Polymer1.0?
I asked the Polymer team about this recently, and there are no plans to add a long-press in the near term.
However, Vaadin has released this gesture that works well. https://github.com/vaadin/vaadin-context-menu/blob/master/vaadin-long-touch.html
Related
Is there any automation tool available to automate yfiles for HTML based graph?
Or is there a way to use selenium for automating it?
You can use Selenium for this task. What's important to consider is that yFiles uses state machines internally for the processing of the events and therefor the events should be simulated like they would happen in the real world.
This means that instead of just dispatching click events, you would need to simulate the correct series of events that lead to a click: mousemove, mousedown, mouseup, click and for a drag there should be one or more mousemoves, mousedown, one or more mousemoves, and a mouseup.
Sadly Selenium does not do this automatically for you, but writing a couple of helper functions that will perform a proper click or drag is a one-time setup. You can then use dispatchEvent to dispatch synthetic events to the main component and write high-level tests that will perform a series of user interactions.
I am using kinect (V2) for developing a gesture based application in WPF. I am able to scroll the image, zoom it, get the click event. Now what i need to do is use the right click gesture using kinect. What is the gesture to use right click using kinect or do i need to write any custom code to achieve it. I need to use the right click using gesture in kinect ? Could you please help me with it?
Implementing a gestural system is not the same of implementing a WIMP (Windows-Icons-Menu-Pointer) interface. So you should probably completely overcome the idea of interacting with a desktop and "use a mouse via gestures". If you will decide to follow this latter (wrong) idea, you will risk to produce a not-so-usable interface.
Anyway, there is no standard "right-click gesture", and this is due to the fact that a gestural interface is different from a classical desktop GUI.
You should write some custom gesture to do this indeed.
For more information, take a look to the Human Interface Guidelines 2.0 by Microsoft.
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.
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.
It seems like a common question on Google, but I couldn't find a satisfactory answer (unless the answer is 'no')
I would like to add menu items or show a custom menu when a user right-clicks on my Silverlight app.
The closest thing that I found catches the context menu in IE, but not in Firefox, and Chrome shows the context menu and then shows the custom event.
(The tutorial I mentioned was here
http://silverlight.net/blogs/msnow/archive/2008/07/01/tip-of-the-day-14-how-to-right-click-on-a-silverlight-application.aspx)
Here you have an implementation but it's CTRL+Left click, then you get a context menu (about the text, sorry it's in spanish):
http://www.albloguera.es/?p=29
Another option, is the one pointed out do it via javascript, quite chunky solution, and not sure if now it's working in the current 2.0 version :-(.
Good Luck
Braulio
There is no way to do this natively in Silverlight.
I believe that the Telerik control noted elsewhere uses the HtmlBridge to intercept the context click, then draw their own menu, however it does not appear to be working with Silverlight 2.0.40115 now, so maybe Microsoft have closed that gap.
Having no right click is a design decision based on security concerns, rather than a technical one. However I believe that the Microsoft team are considering allowing context menu's in future versions (perhaps even v3)
I've come to the conclusion that it seems it is possible based on my use of Telerik's context menu which works fine on IE, Chrome and Firefox.
Check it out, http://demos.telerik.com/silverlight/#ContextMenu/FirstLook