This documentation is archived and is not being maintained.

RawStylusInput::NotifyWhenProcessed Method

Subscribes to the application thread's corresponding stylus methods.

Namespace:  System.Windows.Input.StylusPlugIns
Assembly:  PresentationCore (in PresentationCore.dll)

public:
void NotifyWhenProcessed(
	Object^ callbackData
)

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

OnStylusDown

OnStylusDownProcessed

OnStylusMove

OnStylusMoveProcessed

OnStylusUp

OnStylusUpProcessed

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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Show: