CoreComponentInputSource class

Applies to Windows and Windows Phone

Provides a mechanism to receive input for a XAML framework element hosted in another framework, such as a DirectX interop framework.

Syntax

Public NotInheritable Class CoreComponentInputSource
    Implements ICoreInputSourceBase, _
    ICorePointerInputSource

Attributes

[MarshalingBehavior(Agile)]
[Muse()]
[Version(0x06030000)]
[WebHostHidden()]

Members

The CoreComponentInputSource class has these types of members:

Events

The CoreComponentInputSource class has these events.

EventDescription
CharacterReceived Raised when a character is received (such as from a completed key press sequence) by the hosted XAML element.
GotFocus Raised when a hosted XAML element gets focus.
InputEnabled Raised when the hosted XAML control is enabled for input.
KeyDown Raised when a key is pressed in for the current active hosted XAML element.
KeyUp Raised when a key press is released for the current active hosted XAML element.
LostFocus Raised when a hosted XAML element loses focus.
PointerCaptureLost Raised when the pointer input capture stream is lost.
PointerEntered Raised when the pointer enters the hosted XAML element.
PointerExited Raised when the pointer exits the hosted XAML element.
PointerMoved Raised when the pointer is moved for the active hosted XAML element.
PointerPressed Raised when the pointer is "pressed" (such as a mouse button click or full screen press)for the active hosted XAML element.
PointerReleased Raised when the pointer is released (such as when a mouse button click or screen press is released) for the active hosted XAML element.
PointerWheelChanged Raised when the mouse wheel is rotated for the active hosted XAML element.
TouchHitTesting Raised for a touch hit test on a hosted XAML element.

 

Methods

The CoreComponentInputSource class has these methods. It also inherits methods from the Object class.

MethodDescription
GetCurrentKeyState Gets the current status of a virtual keypress.
ReleasePointerCapture Stops the capture of pointer input data (if the pointing device supports input capture).
SetPointerCapture Starts the capture of pointer input data (if the pointing device supports input capture).

 

Properties

The CoreComponentInputSource class has these properties.

PropertyAccess typeDescription

Dispatcher

Read-onlyGets the input event dispatcher for the hosted XAML framework element.

HasCapture

Read-onlyIndicates whether the input device supports input capture.

HasFocus

Read-onlyGets whether the current hosted XAML control element has focus.

IsInputEnabled

Read/writeGets or sets whether input is enabled for the hosted XAML framework element.

PointerCursor

Read/writeGets the pointer cursor behavior for interactions with the hosted XAML framework element.

PointerPosition

Read-onlyGets the current pointer position in the hosted XAML framework.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

See also

Object
ICoreInputSourceBase
ICorePointerInputSource

 

 

Show:
© 2014 Microsoft