ElementCompositionPreview.GetPointerPositionPropertySet(UIElement) ElementCompositionPreview.GetPointerPositionPropertySet(UIElement) ElementCompositionPreview.GetPointerPositionPropertySet(UIElement) ElementCompositionPreview.GetPointerPositionPropertySet(UIElement) Method

Definition

Retrieves the pointer position relative to a UIElement.

public : static CompositionPropertySet GetPointerPositionPropertySet(UIElement targetElement)
static CompositionPropertySet GetPointerPositionPropertySet(UIElement targetElement) const;
public static CompositionPropertySet GetPointerPositionPropertySet(UIElement targetElement)
Public Shared Function GetPointerPositionPropertySet(targetElement As UIElement) As CompositionPropertySet

Parameters

targetElement
UIElement UIElement

The element that the pointer position is relative to.

Returns

The position properties of the pointer.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)