示例#1
0
 public static IObservable <GestureEventArgs> AsObservable(this IGestureSensor gesture)
 {
     return(Observable.Merge(
                gesture.MoveForwardAsObservable(),
                gesture.SlideDownAsObservable(),
                gesture.SlideUpAsObservable(),
                gesture.SlideLeftAsObservable(),
                gesture.SlideRightAsObservable(),
                gesture.WaveAsObservable()));
 }