void _manager_SwipeDetected(object sender, SwipeGestureRecognisedEventArgs e) { string text = "State: Swipe Detected of type" + e.DetectedGesture; System.Windows.Threading.Dispatcher pdDispatcher = lblState.Dispatcher; //create a new delegate for updating our progress text UpdateStatusTextDelegate update = new UpdateStatusTextDelegate(UpdateStatusText); //invoke the dispatcher and pass the percentage and max record count pdDispatcher.BeginInvoke(update, text); tabDispatcher = tabControl1.Dispatcher; UpdateTabControlDelegate updateTab = new UpdateTabControlDelegate(UpdateTabControl); tabDispatcher.BeginInvoke(updateTab, e.DetectedGesture); }
void _gestureTracker_SwipeGestureRecognized(object sender, SwipeGestureRecognisedEventArgs e) { SwipeDetected(this, e); }
void sg_SwipeGestureRecognisedEventHandler(object sender, SwipeGestureRecognisedEventArgs e) { SwipeGestureRecognized(this, e); }