Occurs when a touch message is sent.
Assembly: PresentationCore (in PresentationCore.dll)
A frame is one in a series of multitouch messages or touch points. You can respond to touches by handling the event and accessing the details of the TouchPoint from the TouchFrameEventArgs event data.
The event does not use the same event model as other WPF input events, such as TouchDown and TouchMove. Instead of being exposed as an element-specific event that potentially routes through the object tree of a UI, the event is a single event that is handled at the application level. Therefore, you cannot use the sender parameter of the event handler to determine what element is touched.
The following example handles the event. When a touch presses on the Canvas, the TouchDevice is captured to the Canvas. When the touch is lifted, the TouchDevice is released. When a touch moves across the Canvas, the Id is checked. If the move came from the first touch, its location is recorded. If the move came from the second touch, a line is drawn from the position of the first touch to the position of the second touch.
This example is part of a larger example that is available in the Touch class overview.