共用方式為


ICoreWindow.KeyUp 事件

定義

按下之後釋放非系統按鍵時所引發的事件。

此事件的委派類型為 TypedEventHandler<TSender,TResult>,其中 TSender 的類型為 CoreWindow而 TResult 的類型為 KeyEventArgs

// Register
event_token KeyUp(TypedEventHandler<CoreWindow, KeyEventArgs const&> const& handler) const;

// Revoke with event_token
void KeyUp(event_token const* cookie) const;

// Revoke with event_revoker
ICoreWindow::KeyUp_revoker KeyUp(auto_revoke_t, TypedEventHandler<CoreWindow, KeyEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,KeyEventArgs> KeyUp;
function onKeyUp(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("keyup", onKeyUp);
iCoreWindow.removeEventListener("keyup", onKeyUp);
- or -
iCoreWindow.onkeyup = onKeyUp;
Event KeyUp As TypedEventHandler(Of CoreWindow, KeyEventArgs) 

事件類型

適用於

另請參閱