void swipe_SwipeCaptured(object sender, SwipeEventArgs e) { if (this.SwipeDetected != null) { this.SwipeDetected(this, e); } }
void kinectService_SwipeDetected(object sender, SwipeEventArgs e) { Debug.WriteLine("Swipe detected."); if (this.selectedItem != null) { Debug.WriteLine("Executing command on item."); this.selectedItem.ItemCommand.Execute(null); } }