导出 (0) 打印
全部展开
信息
您所需的主题如下所示。但此主题未包含在此库中。

ICoreWindow Interface

指定窗口对象及其输入事件以及基本的用户界面行为的接口。

语法


Public Interface ICoreWindow

特性

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

成员

ICoreWindow接口 具有这些类型的成员:

事件

ICoreWindow接口 具有这些事件。

事件说明
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.

 

方法

The ICoreWindow 接口 具有这些方法。 它还继承方法于Object 类.

方法说明
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.

 

属性

ICoreWindow接口 具有这些属性。

属性访问类型说明

AutomationHostProvider

只读Specifies the property that gets the automation provider assigned to this window.

Bounds

只读Specifies the property that gets the bounding rectangle of the window.

CustomProperties

只读Specifies a property that gets the set of custom properties for the window.

Dispatcher

只读Specifies a property that gets the event dispatcher for the window.

FlowDirection

读/写Specifies the property that gets or sets the horizontal origin of the window's reading order alignment.

IsInputEnabled

读/写Specifies a property that gets or sets whether input is enabled for the window.

PointerCursor

读/写Specifies a property that gets or sets the cursor used by the window.

PointerPosition

只读Specifies a property that gets the position of the pointer.

Visible

只读Specifies the property that gets whether the window is visible or not.

 

要求

最低支持客户端

Windows 8

最低支持服务器

Windows Server 2012

最低支持电话

Windows Phone 8

命名空间

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

元数据

Windows.winmd

 

 

Microsoft 正在进行一项网上调查,以了解您对 MSDN 网站的意见。 如果您选择参加,我们将会在您离开 MSDN 网站时向您显示该网上调查。

是否要参加?
显示:
© 2014 Microsoft