ICoreWindow interface

Applies to Windows and Windows Phone

Specifies an interface for a window object and its input events as well as basic user interface behaviors.

Syntax

Public Interface ICoreWindow

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The ICoreWindow interface has these types of members:

Events

The ICoreWindow interface has these events.

EventDescription
Activated Specifies the event that is fired when the window completes activation or deactivation.
AutomationProviderRequested Specifies the event that is fired when a request for an automation handler is generated.
CharacterReceived Specifies the event that is fired when a new character is received by the input queue.
Closed Specifies the event that is fired when a window is closed (or the app terminates altogether).
InputEnabled Specifies an event that occurs when input is enabled or disabled for the window.
KeyDown Specifies the event that is fired when a non-system key is pressed down.
KeyUp Specifies the event that is fired when a non-system key is released after a press.
PointerCaptureLost Specifies the event that occurs when a pointer moves to another window.
PointerEntered Specifies the event that occurs when a pointer moves into the bounding box of the window.
PointerExited Specifies the event that occurs when the pointer moves outside the bounding box of the window.
PointerMoved Specifies the event that occurs when a pointer moves within the bounding box of the window.
PointerPressed Specifies the event that occurs when a mouse button is clicked or the digitizer surface has been touched by a finger or pen.
PointerReleased Specifies the event that occurs when a mouse button is released or the finger or pen is lifted from the digitizer surface.
PointerWheelChanged Specifies the event that occurs when the mouse wheel is rotated.
SizeChanged Specifies the event that raises when the window size is changed.
TouchHitTesting Specifies the event that occurs when a touch contact area falls within a window that is registered for touch hit testing.
VisibilityChanged Specifies the event that occurs when the window visibility is changed.

 

Methods

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

MethodDescription
Activate Specifies a method that activates the window.
Close Specifies the method that closes the window and exits the message loop.
GetAsyncKeyState Specifies a method that returns the state of a virtual key asynchronously.
GetKeyState Specifies a method that gets the state of a key.
ReleasePointerCapture Specifies a method that disables pointer capture for the window.
SetPointerCapture Specifies a method that enables pointer capture for the window.

 

Properties

The ICoreWindow interface has these properties.

PropertyAccess typeDescription

AutomationHostProvider

Read-onlySpecifies the property that gets the automation provider assigned to this window.

Bounds

Read-onlySpecifies the property that gets the bounding rectangle of the window.

CustomProperties

Read-onlySpecifies a property that gets the set of custom properties for the window.

Dispatcher

Read-onlySpecifies a property that gets the event dispatcher for the window.

FlowDirection

Read/writeSpecifies the property that gets or sets the horizontal origin of the window's reading order alignment.

IsInputEnabled

Read/writeSpecifies a property that gets or sets whether input is enabled for the window.

PointerCursor

Read/writeSpecifies a property that gets or sets the cursor used by the window.

PointerPosition

Read-onlySpecifies a property that gets the position of the pointer.

Visible

Read-onlySpecifies the property that gets whether the window is visible or not.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft