PenDeviceInterop Class

Definition

Supports the ability to identify and track an active system PenDevice object through interop.

public ref class PenDeviceInterop abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PenDeviceInterop final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class PenDeviceInterop
Public Class PenDeviceInterop
Inheritance
Object Platform::Object IInspectable PenDeviceInterop
Attributes

Examples

The following code shows how to relate a PointerPoint to a system PenDevice:

private void PointerInputSource_PointerEntered(InputPointerSource sender, PointerEventArgs args)
{
    var penDevice = PenDeviceInterop.PenDeviceFromPointerPoint(args.CurrentPoint);
}

Methods

FromPointerPoint(PointerPoint)

Retrieves a reference to a pen device associated with the specified pointer.

Applies to