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) 

事件类型

适用于

另请参阅