detect long touch (WPF and Microsoft Surface)
问题 Is there any way I can detect a long touch over a TextBlock (or a Label)? 回答1: There is an event called TouchAndHoldGesture and PreviewTouchHoldGesture 回答2: As far as I know there is no built in way so you would have to do something like this • Capture the start time on the TouchDown event of the control • Compare this to the release time in the TouchUup event • If the two are different by X then run your long touch code There might be a few things you have to code around but that is the