InputLightDismissAction.Dismissed 事件

定义

当用户在关联的窗口外点击或单击时发生。

// Register
event_token Dismissed(TypedEventHandler<InputLightDismissAction, InputLightDismissEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
InputLightDismissAction::Dismissed_revoker Dismissed(auto_revoke_t, TypedEventHandler<InputLightDismissAction, InputLightDismissEventArgs const&> const& handler) const;
public event TypedEventHandler<InputLightDismissAction,InputLightDismissEventArgs> Dismissed;
function onDismissed(eventArgs) { /* Your code */ }
inputLightDismissAction.addEventListener("dismissed", onDismissed);
inputLightDismissAction.removeEventListener("dismissed", onDismissed);
- or -
inputLightDismissAction.ondismissed = onDismissed;
Public Custom Event Dismissed As TypedEventHandler(Of InputLightDismissAction, InputLightDismissEventArgs) 

事件类型

注解

触发 Dismissed 事件的操作示例包括:

  • 窗口将丢失激活。
  • 当窗口具有焦点时,用户按 Esc 键。
  • 当窗口具有焦点时,用户按 Alt 键。
  • 窗口接收WM_HOTKEY消息。
  • 该窗口接收APPCOMMAND_BROWSER_HOME、APPCOMMAND_BROWSER_BACKWARD、APPCOMMAND_BROWSER_FORWARD或APPCOMMAND_BROWSER_REFRESH等应用命令。

适用于

另请参阅