New Gestures Feature

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

ishlasko wrote at 2014-04-28 18:37:

Just updated our system to the latest version, and the new gesture framework is great! Much better than the hack I was using before :)

Now that this is in place, it was trivially easy to let the user toggle between different manipulation modes without needing the keyboard.

Also set up something like the commonly-used DelegateCommand, to bind a delegate instead of a standard plot command:
Controller.BindKeyDown(OxyKey.Left, new OxyDelegateCommand<OxyKeyEventArgs>(a=>MoveTrackedItem(-1)));
Controller.BindKeyDown(OxyKey.Right, new OxyDelegateCommand<OxyKeyEventArgs>(a => MoveTrackedItem(+1)));
(Keeps the tracker visible, and moves it to the previous/next point in the current series)

No bug report here... Just paying my compliments to objo and Garreye. Looking great, guys.

objo wrote at 2014-04-29 09:07:

Thanks for the feedback, it is great to hear that this refactorization was helpful!