UIElement.GettingFocus UIElement.GettingFocus UIElement.GettingFocus UIElement.GettingFocus Event

Definition

Occurs before a UIElement receives focus. This event is raised synchronously to ensure focus isn't moved while the event is bubbling.

public : event TypedEventHandler<UIElement, GettingFocusEventArgs> GettingFocus
// Register
event_token GettingFocus(TypedEventHandler<UIElement, GettingFocusEventArgs> const& handler) const;

// Revoke with event_token
void GettingFocus(event_token const& cookie) const;

// Revoke with event_revoker
GettingFocus_revoker GettingFocus(auto_revoke_t, TypedEventHandler<UIElement, GettingFocusEventArgs> const& handler) const;
public event TypedEventHandler<UIElement, GettingFocusEventArgs> GettingFocus
Public Event GettingFocus As TypedEventHandler (Of UIElement, GettingFocusEventArgs)
<uiElement GettingFocus="eventhandler"/>

Remarks

FocusNavigationDirection.Previous and FocusNavigationDirection.Next cannot be used with FindNextElementOptions. Only FocusNavigationDirection.Up, FocusNavigationDirection.Down, FocusNavigationDirection.Left, or FocusNavigationDirection.Right are valid.

See Also