RawStylusInput::NotifyWhenProcessed Method
Subscribes to the application thread's corresponding stylus methods.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- callbackData
- Type: System::Object
The data to pass to the application thread.
The pen's input is routed to an element's StylusPlugIn on the pen thread. Because accurate hit-testing cannot be performed on the pen thread, some elements might occasionally receive stylus input intended for other elements. If you need to be sure the input was routed correctly before performing an operation, call the NotifyWhenProcessed method in the method that occurs on the pen thread. The following table lists where to call NotifyWhenProcessed to subscribe to the application thread's method.
Call NotifyWhenProcessed in this method | To subscribe to this method |
|---|---|
The following example creates a StylusPlugIn that checks for the Down gesture. The StylusPlugIn calls NotifyWhenProcessed in OnStylusUp to subscribe to the OnStylusUpProcessed method, which is called from the application thread.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.