NavBarItemSelectingEventArgs.PrevItem Property
Gets the previously selected item.
Namespace: DevExpress.Xpf.NavBar
Assembly: DevExpress.Xpf.NavBar.v24.2.dll
NuGet Package: DevExpress.Wpf.NavBar
Declaration
Property Value
Type | Description |
---|---|
NavBarItem | A NavBarItem object representing the previously selected item. |
Remarks
In single item selection mode (the NavBarControl.AllowSelectItem property is set to true and the NavBarControl.EachGroupHasSelectedItem property is set to false), the PrevItem property identifies an item that was selected within the NavBarControl before the NavBarViewBase.ItemSelecting event occurs. The item’s owning group can be accessed via the NavBarItemSelectingEventArgs.PrevGroup property. If no item was selected within the NavBarControl, the PrevItem property returns null.
If multiple item selection mode is used (both the NavBarControl.AllowSelectItem property and NavBarControl.EachGroupHasSelectedItem properties are true), the PrevItem property returns an item that was previously selected within a group that contains the newly selected item (NavBarItemSelectingEventArgs.NewItem). If the group didn’t contain any selected item, the PrevItem property returns null.