Udostępnij za pośrednictwem


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

Remarks

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

Applies to

See also