UIElement.NoFocusCandidateFound 事件

定义

当用户尝试通过制表键或方向箭头 (移动焦点) ,但焦点不会移动时发生,因为移动方向上找不到焦点候选项。

// Register
event_token NoFocusCandidateFound(TypedEventHandler<UIElement, NoFocusCandidateFoundEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
UIElement::NoFocusCandidateFound_revoker NoFocusCandidateFound(auto_revoke_t, TypedEventHandler<UIElement, NoFocusCandidateFoundEventArgs const&> const& handler) const;
public event TypedEventHandler<UIElement,NoFocusCandidateFoundEventArgs> NoFocusCandidateFound;
function onNoFocusCandidateFound(eventArgs) { /* Your code */ }
uIElement.addEventListener("nofocuscandidatefound", onNoFocusCandidateFound);
uIElement.removeEventListener("nofocuscandidatefound", onNoFocusCandidateFound);
- or -
uIElement.onnofocuscandidatefound = onNoFocusCandidateFound;
Public Custom Event NoFocusCandidateFound As TypedEventHandler(Of UIElement, NoFocusCandidateFoundEventArgs) 
<uiElement NoFocusCandidateFound="eventhandler"/>

事件类型

注解

NoFocusCandidateFound 是路由事件。 有关路由事件概念的详细信息,请参阅 事件和路由事件概述

适用于

另请参阅