Table of Contents

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

Previous IFocusableControl

The control that lost focus, or null.

Current IFocusableControl

The control that gained focus, or null.

Reason FocusReason

Why the focus changed.

Properties

Current

The control that gained focus, or null.

public IFocusableControl? Current { get; init; }

Property Value

IFocusableControl

Previous

The control that lost focus, or null.

public IFocusableControl? Previous { get; init; }

Property Value

IFocusableControl

Reason

Why the focus changed.

public FocusReason Reason { get; init; }

Property Value

FocusReason