UIElement.NoFocusCandidateFound 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户尝试通过制表键或方向箭头 (移动焦点) ,但焦点不会移动时发生,因为移动方向上找不到焦点候选项。
// 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 是路由事件。 有关路由事件概念的详细信息,请参阅 事件和路由事件概述。