Class FocusChangedEventArgs
- Namespace
- SharpConsoleUI.Core
- Assembly
- SharpConsoleUI.dll
Event args for FocusChanged.
public record FocusChangedEventArgs : IEquatable<FocusChangedEventArgs>
- Inheritance
-
FocusChangedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
FocusChangedEventArgs(IFocusableControl?, IFocusableControl?, FocusReason)
Event args for FocusChanged.
public FocusChangedEventArgs(IFocusableControl? Previous, IFocusableControl? Current, FocusReason Reason)
Parameters
PreviousIFocusableControlThe control that lost focus, or
null.CurrentIFocusableControlThe control that gained focus, or
null.ReasonFocusReasonWhy the focus changed.
Properties
Current
The control that gained focus, or null.
public IFocusableControl? Current { get; init; }
Property Value
Previous
The control that lost focus, or null.
public IFocusableControl? Previous { get; init; }
Property Value
Reason
Why the focus changed.
public FocusReason Reason { get; init; }