In my app i want to be able to recognise certain gestures that occur on an ui element.
So far i have got this: (where main grid is the element)
mainGrid.ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateY;
mainGrid.ManipulationCompleted += OnManipulationCompleted;
public void OnManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
{
var velocities = e.Velocities;
}
but i get certain weird errors
Error 1 No overload for 'OnManipulationCompleted' matches delegate 'Windows.UI.Xaml.Input.ManipulationCompletedEventHandler' C:\Visual Studio 2013\Projects\Swell\Swell\MainPage.xaml.cs
reference : Handling Swipe Guesture in Windows 8 Grid