CoreComponentInputSource CoreComponentInputSource CoreComponentInputSource CoreComponentInputSource Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Provides a mechanism to receive input for a XAML framework element hosted in another framework, such as a DirectX interop framework.

public : sealed class CoreComponentInputSource : ICoreClosestInteractiveBoundsRequested, ICoreComponentFocusable, ICoreInputSourceBase, ICoreKeyboardInputSource, ICoreKeyboardInputSource2, ICorePointerInputSource, ICoreTouchHitTesting
struct winrt::Windows::UI::Core::CoreComponentInputSource : ICoreClosestInteractiveBoundsRequested, ICoreComponentFocusable, ICoreInputSourceBase, ICoreKeyboardInputSource, ICoreKeyboardInputSource2, ICorePointerInputSource, ICoreTouchHitTesting
public sealed class CoreComponentInputSource : ICoreClosestInteractiveBoundsRequested, ICoreComponentFocusable, ICoreInputSourceBase, ICoreKeyboardInputSource, ICoreKeyboardInputSource2, ICorePointerInputSource, ICoreTouchHitTesting
Public NotInheritable Class CoreComponentInputSource Implements ICoreClosestInteractiveBoundsRequested, ICoreComponentFocusable, ICoreInputSourceBase, ICoreKeyboardInputSource, ICoreKeyboardInputSource2, ICorePointerInputSource, ICoreTouchHitTesting
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The CoreComponentInputSource class enables an app to handle input for a XAML framework element hosted in another framework, such as a DirectX interop framework. Call the CoreComponentInputSource.DispatcherQueue property to get the DispatcherQueue of the thread where the CoreComponentInputSource was instantiated.

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the input event dispatcher for the hosted XAML framework element.

DispatcherQueue DispatcherQueue DispatcherQueue DispatcherQueue

Prerelease. Gets the DispatcherQueue associated with this CoreComponentInputSource.

HasCapture HasCapture HasCapture HasCapture

Indicates whether the input device supports input capture.

HasFocus HasFocus HasFocus HasFocus

Gets whether the current hosted XAML control element has focus. If it does, keyboard input is delivered to that control.

IsInputEnabled IsInputEnabled IsInputEnabled IsInputEnabled

Gets or sets whether input is enabled for the hosted XAML framework element.

PointerCursor PointerCursor PointerCursor PointerCursor

Gets the pointer cursor behavior for interactions with the hosted XAML framework element.

PointerPosition PointerPosition PointerPosition PointerPosition

Gets the current pointer position in the hosted XAML framework.

Methods

GetCurrentKeyEventDeviceId() GetCurrentKeyEventDeviceId() GetCurrentKeyEventDeviceId() GetCurrentKeyEventDeviceId()

Retrieves the unique ID for the input device that generated this key event.

GetCurrentKeyEventDeviceId is not supported for all input devices.

GetCurrentKeyState(VirtualKey) GetCurrentKeyState(VirtualKey) GetCurrentKeyState(VirtualKey) GetCurrentKeyState(VirtualKey)

Gets the current status of a virtual key press.

ReleasePointerCapture() ReleasePointerCapture() ReleasePointerCapture() ReleasePointerCapture()

Stops the capture of pointer input data (if the pointing device supports input capture).

SetPointerCapture() SetPointerCapture() SetPointerCapture() SetPointerCapture()

Starts the capture of pointer input data (if the pointing device supports input capture).

Events

CharacterReceived CharacterReceived CharacterReceived CharacterReceived

Raised when a character is received (such as from a completed key press sequence) by the hosted XAML element.

ClosestInteractiveBoundsRequested ClosestInteractiveBoundsRequested ClosestInteractiveBoundsRequested ClosestInteractiveBoundsRequested

Note

Not intended for general use.

Occurs when a framework input manager requests the bounding rectangle of an interactive element within a specific bounding rectangle and closest to a specific pointer.

GotFocus GotFocus GotFocus GotFocus

Raised when a hosted XAML element gets focus.

InputEnabled InputEnabled InputEnabled InputEnabled

Raised when the hosted XAML control is enabled for input.

KeyDown KeyDown KeyDown KeyDown

Raised when a key is pressed for the current active hosted XAML element.

KeyUp KeyUp KeyUp KeyUp

Raised when a key press is released for the current active hosted XAML element.

LostFocus LostFocus LostFocus LostFocus

Raised when a hosted XAML element loses focus.

PointerCaptureLost PointerCaptureLost PointerCaptureLost PointerCaptureLost

Raised when the pointer input capture stream is lost.

PointerEntered PointerEntered PointerEntered PointerEntered

Raised when the pointer enters the hosted XAML element.

PointerExited PointerExited PointerExited PointerExited

Raised when the pointer exits the hosted XAML element.

PointerMoved PointerMoved PointerMoved PointerMoved

Raised when the pointer is moved for the active hosted XAML element.

PointerPressed PointerPressed PointerPressed PointerPressed

Raised when the pointer is "pressed" (such as a mouse button click or full screen press) for the active hosted XAML element.

PointerReleased PointerReleased PointerReleased 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 PointerWheelChanged PointerWheelChanged PointerWheelChanged

Raised when the mouse wheel is rotated for the active hosted XAML element.

TouchHitTesting TouchHitTesting TouchHitTesting TouchHitTesting

Raised for a touch hit test on a hosted XAML element.

See Also