共用方式為


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"/>

事件類型

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

NoFocusCandidateFound 是路由事件。 如需路由事件概念的詳細資訊,請參閱 事件和路由事件概觀

適用於

另請參閱