Class NavigationItemChangingEventArgs
- Namespace
- SharpConsoleUI.Events
- Assembly
- SharpConsoleUI.dll
Event args raised before the selected navigation item changes. Can be canceled.
public class NavigationItemChangingEventArgs : EventArgs
- Inheritance
-
NavigationItemChangingEventArgs
- Inherited Members
- Extension Methods
Constructors
NavigationItemChangingEventArgs(int, int, NavigationItem?, NavigationItem?)
Initializes a new instance of NavigationItemChangingEventArgs.
public NavigationItemChangingEventArgs(int oldIndex, int newIndex, NavigationItem? oldItem, NavigationItem? newItem)
Parameters
oldIndexintnewIndexintoldItemNavigationItemnewItemNavigationItem
Properties
Cancel
Set to true to cancel the selection change.
public bool Cancel { get; set; }
Property Value
NewIndex
Index of the item being switched to.
public int NewIndex { get; }
Property Value
NewItem
The item being switched to.
public NavigationItem? NewItem { get; }
Property Value
OldIndex
Index of the currently selected item.
public int OldIndex { get; }
Property Value
OldItem
The currently selected item, or null if none was selected.
public NavigationItem? OldItem { get; }