Interface IPointer
Identifies specific pointer generated by input device.
[NotClientImplementable]
public interface IPointer
Remarks
Some devices, for instance, touchscreen might generate a pointer on each physical contact.
Properties
Captured
Gets the control that is currently capturing by the pointer, if any.
IInputElement? Captured { get; }
Property Value
Remarks
When an element captures the pointer, it receives pointer input whether the cursor is within the control's bounds or not. To set the pointer capture, call the Capture(IInputElement?) method.
Id
Gets a unique identifier for the input pointer.
int Id { get; }
Property Value
IsPrimary
Gets a value that indicates whether the input is from the primary pointer when multiple pointers are registered.
bool IsPrimary { get; }
Property Value
Type
Gets the pointer device type.
PointerType Type { get; }
Property Value
Methods
Capture(IInputElement?)
Captures pointer input to the specified control.
void Capture(IInputElement? control)
Parameters
control
IInputElementThe control.
Remarks
When an element captures the pointer, it receives pointer input whether the cursor is within the control's bounds or not. The current pointer capture control is exposed by the Captured property.