CoreWindow Members

CoreWindow has the following members.

Public Properties

  Name Description
Bounds Gets the bounding rectangle of the window.
Dispatcher Gets the event dispatcher for the window.
IsInputEnabled Gets or sets a value that indicates whether input is enabled for the window.
PointerCursor Gets or sets the cursor used by the app.
PointerPosition Gets the client coordinates of the pointer.
Visible Gets a value that indicates whether the window is visible.

Public Methods

  Name Description
Activate Activates the window.
Close Closes a secondary window and exits the message loop.
GetAsyncKeyState Returns the state of a virtual key asynchronously.
  GetForCurrentThread Gets the CoreWindow instance for the currently active thread.
GetKeyState Gets the state of a key.

Public Events

  Name Description
Activated Is fired when the window completes activation or deactivation.
CharacterReceived Is fired when a new character is received by the input queue.
Closed Is fired when the app terminates.
InputEnabled Occurs when input is enabled or disabled for the window.
KeyDown Is fired when a non-system key is pressed.
KeyUp Is fired when a non-system key is released after a press.
PointerEntered Occurs when a pointer moves into the bounding box of the Microsoft Store app.
PointerExited Occurs when the pointer moves outside the bounding box of the Microsoft Store app.
PointerMoved Occurs when a pointer moves within the bounding box of the Microsoft Store app.
PointerPressed Occurs when a mouse button is clicked, or the digitizer surface has been touched by a finger or pen, within the bounding rectangle of the app.
PointerReleased Occurs when a pressed mouse button is released, or a touch or pen contact is lifted from the digitizer surface, within the bounding rectangle of the app (or outside the bounding rectangle, if the pointer is captured).
PointerWheelChanged Occurs when the wheel button is rotated.
SizeChanged Is fired when the window size is changed.
VisibilityChanged Is fired when the window visibility is changed.

See also

Reference

CoreWindow Class

Windows.UI.Core Namespace