Class Pointer
public class Pointer : IPointer, IDisposable
- Inheritance
-
Pointer
- Implements
- Inherited Members
Constructors
Pointer(int, PointerType, bool)
public Pointer(int id, PointerType type, bool isPrimary)
Parameters
id
inttype
PointerTypeisPrimary
bool
Properties
Captured
Gets the control that is currently capturing by the pointer, if any.
public 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.
public int Id { get; }
Property Value
IsGestureRecognitionSkipped
public bool IsGestureRecognitionSkipped { get; set; }
Property Value
IsPrimary
Gets a value that indicates whether the input is from the primary pointer when multiple pointers are registered.
public bool IsPrimary { get; }
Property Value
Type
Gets the pointer device type.
public PointerType Type { get; }
Property Value
Methods
Capture(IInputElement?)
Captures pointer input to the specified control.
public 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.
Dispose()
public void Dispose()
GetNextFreeId()
public static int GetNextFreeId()
Returns
PlatformCapture(IInputElement?)
protected virtual void PlatformCapture(IInputElement? element)
Parameters
element
IInputElement