TouchDevice.Deactivate Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the TouchDevice from the input messaging system.

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

protected void Deactivate()

Exception Condition
InvalidOperationException

The device is not activated.

Classes that inherit from TouchDevice should call this method to deactivate the current device.

A TouchLeave event is raised without the corresponding TouchUp event.

.NET Framework
Available since 4.0
Return to top
Show: