Table of Contents

Class NavigationItemChangedEventArgs

Namespace
SharpConsoleUI.Events
Assembly
SharpConsoleUI.dll

Event args raised after the selected navigation item has changed.

public class NavigationItemChangedEventArgs : EventArgs
Inheritance
NavigationItemChangedEventArgs
Inherited Members
Extension Methods

Constructors

NavigationItemChangedEventArgs(int, int, NavigationItem?, NavigationItem?)

Initializes a new instance of NavigationItemChangedEventArgs.

public NavigationItemChangedEventArgs(int oldIndex, int newIndex, NavigationItem? oldItem, NavigationItem? newItem)

Parameters

oldIndex int
newIndex int
oldItem NavigationItem
newItem NavigationItem

Properties

NewIndex

Index of the newly selected item.

public int NewIndex { get; }

Property Value

int

NewItem

The newly selected item.

public NavigationItem? NewItem { get; }

Property Value

NavigationItem

OldIndex

Index of the previously selected item.

public int OldIndex { get; }

Property Value

int

OldItem

The previously selected item, or null if none was selected.

public NavigationItem? OldItem { get; }

Property Value

NavigationItem