public GestureCodeBehind() { InitializeComponent(); //tap var tap = new TapProcessor(); tap.Tap += Tap_Tap; Gesture.AddGesture(tap_postit,tap); //hold var hold = new HoldProcessor(); hold.Hold += Hold_Hold; Gesture.AddGesture(hold_postit, hold); //manip var manip = new ManipulationProcessor(); manip.ManipulationUpdate += Manip_ManipulationUpdate; Gesture.AddGesture(manipulate_postit, manip); //all /*tap = new TapProcessor(); tap.Tap += Tap_Tap; Gesture.AddGesture(all_postit, tap); hold = new HoldProcessor(); hold.Hold += Hold_Hold; Gesture.AddGesture(all_postit, hold);*/ manip = new ManipulationProcessor(); manip.ManipulationUpdate += Manip_ManipulationUpdate; Gesture.AddGesture(all_postit, manip); }
public ConnectionDemo() { InitializeComponent(); DragAndDrop.AddDragEnterHandler(this, onDragEnter); DragAndDrop.AddDragLeaveHandler(this, onDragLeave); DragAndDrop.AddDropHandler(this, onDrop); Loaded += ConnectionDemo_Loaded; var hold = new HoldProcessor() { AllowMultipleInstance = true }; hold.Hold += hold_Hold; Gesture.AddGesture(canvastest, hold); }