TouchDevice::Captured Property

.NET Framework (current version)
 

Gets the element that captured the TouchDevice.

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

public:
property IInputElement^ Captured {
	IInputElement^ get();
}

Property Value

Type: System.Windows::IInputElement^

The element that captured the TouchDevice.

The following example handles the TouchUp events that occur on a Canvas. It checks the Captured property to verify that the device that raised the event is captured to the Canvas. If it is, the TouchDevice is released.

This example is part of a larger example that is available in the TouchDevice class overview.

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

.NET Framework
Available since 4.0
Return to top
Show: