Select an Active Recognizer (Compact 2013)
3/26/2014
If the current touch event results in the start of a new session, GestureRecognizer::RecognizeGesture calls GestureRecognizer::BeginSession, which selects a recognizer object, the active recognizer, to perform additional recognizer activities. It selects the active recognizer according to whether the window is a direct manipulation window. If it is, GestureRecognizer::BeginSession makes a DMRecognizer object the active recognizer; otherwise, it selects a TouchGesture object.
After selecting an active recognizer, GestureRecognizer::BeginSession calls the OnBeginSession method of the active recognizer to begin a gesture session. When GestureRecognizer::BeginSession returns to GestureRecognizer::RecognizeGesture, GestureRecognizer::RecognizeGesture invokes the HandleTouchEvent method of the active recognizer.