FocusChangedEventArgs Class
Definition
Represents the arguments of Avalonia.Input.InputElement.GotFocus and Avalonia.Input.InputElement.LostFocus.
public class FocusChangedEventArgs
Constructors
| Name | Description |
|---|---|
| FocusChangedEventArgs | Initializes 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
| Name | Description |
|---|---|
| KeyModifiers | Gets or sets any key modifiers active at the time of focus. |
| NavigationMethod | Gets or sets a value indicating how the change in focus occurred. |
| NewFocusedElement | Gets or sets the element that focus has moved to. |
| OldFocusedElement | Gets or sets the element that previously had focus. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets 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; }
NavigationMethod Property
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; }