Specifies an interface for a window object and its input events as well as basic user interface behaviors.
Syntax
Attributes
- GuidAttribute("79b9d5f2-879e-4b89-b798-79e47598030c")
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The ICoreWindow interface has these types of members:
Events
The ICoreWindow interface has these events.
| Event | Description |
|---|---|
| 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.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read-only | Specifies the property that gets the automation provider assigned to this window. | |
| Read-only | Specifies the property that gets the bounding rectangle of the window. | |
| Read-only | Specifies a property that gets the set of custom properties for the window. | |
| Read-only | Specifies a property that gets the event dispatcher for the window. | |
| Read/write | Specifies the property that gets or sets the horizontal origin of the window's reading order alignment. | |
| Read/write | Specifies a property that gets or sets whether input is enabled for the window. | |
| Read/write | Specifies a property that gets or sets the cursor used by the window. | |
| Read-only | Specifies a property that gets the position of the pointer. | |
| Read-only | Specifies 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 |
|
|
Metadata |
|
Build date: 2/25/2013