Skip to main content

FocusChangedEventArgs Class

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia
public class FocusChangedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> FocusChangedEventArgs

Constructors

NameDescription
FocusChangedEventArgsInitializes a new instance of Avalonia.Input.FocusChangedEventArgs.

FocusChangedEventArgs Constructor

Initializes a new instance of Avalonia.Input.FocusChangedEventArgs.

public FocusChangedEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent)

Parameters

routedEvent Avalonia.Interactivity.RoutedEvent

The routed event associated with these event args.

Properties

NameDescription
KeyModifiersGets or sets any key modifiers active at the time of focus.
NavigationMethodGets or sets a value indicating how the change in focus occurred.
NewFocusedElementGets or sets the element that focus has moved to.
OldFocusedElementGets or sets the element that previously had focus.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.

KeyModifiers Property

Gets or sets any key modifiers active at the time of focus.

public Avalonia.Input.KeyModifiers KeyModifiers { get; set; }

Gets or sets a value indicating how the change in focus occurred.

public Avalonia.Input.NavigationMethod NavigationMethod { get; set; }

NewFocusedElement Property

Gets or sets the element that focus has moved to.

public Avalonia.Input.IInputElement NewFocusedElement { get; set; }

OldFocusedElement Property

Gets or sets the element that previously had focus.

public Avalonia.Input.IInputElement OldFocusedElement { get; set; }