Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
PenDeviceInterop Class
Definition
- Namespace:
- Microsoft.UI.Input.Interop
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
| Name | Description |
|---|---|
| FromPointerPoint(PointerPoint) |
Retrieves a reference to a pen device associated with the specified pointer. |
Applies to
Feedback
Was this page helpful?
