Table of Contents

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

oldIndex int
newIndex int
oldItem NavigationItem
newItem NavigationItem

Properties

Cancel

Set to true to cancel the selection change.

public bool Cancel { get; set; }

Property Value

bool

NewIndex

Index of the item being switched to.

public int NewIndex { get; }

Property Value

int

NewItem

The item being switched to.

public NavigationItem? NewItem { get; }

Property Value

NavigationItem

OldIndex

Index of the currently selected item.

public int OldIndex { get; }

Property Value

int

OldItem

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

public NavigationItem? OldItem { get; }

Property Value

NavigationItem