UIElement.NoFocusCandidateFound Event

Definition

Occurs when a user attempts to move focus (via tab or directional arrows), but focus doesn't move because no focus candidate is found in the direction of movement.

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

Event Type

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

NoFocusCandidateFound is a routed event. For more info on the routed event concept, see Events and routed events overview.

Applies to

See also