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
oldIndexintnewIndexintoldItemNavigationItemnewItemNavigationItem
Properties
NewIndex
Index of the newly selected item.
public int NewIndex { get; }
Property Value
NewItem
The newly selected item.
public NavigationItem? NewItem { get; }
Property Value
OldIndex
Index of the previously selected item.
public int OldIndex { get; }
Property Value
OldItem
The previously selected item, or null if none was selected.
public NavigationItem? OldItem { get; }