Skip to main content
A newer version of this page is available. .

NavBarItemSelectingEventArgs.PrevGroup Property

Gets the group containing the previously selected item.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.NavBar, DevExpress.Wpf.Navigation

Declaration

public NavBarGroup PrevGroup { get; }

Property Value

Type Description
NavBarGroup

A NavBarGroup object representing the group where the previously selected item is contained.

Remarks

In single item selection mode (the NavBarControl.AllowSelectItem property is set to true and the NavBarControl.EachGroupHasSelectedItem property is set to false), the PrevGroup property identifies the group that contains an item that was selected within the NavBarControl before the NavBarViewBase.ItemSelecting event occurs.

In multi-selection mode (both the NavBarControl.AllowSelectItem property and NavBarControl.EachGroupHasSelectedItem properties are true), the PrevGroup property returns the same value as the NavBarItemSelectingEventArgs.NewGroup property. It identifies the group whose item has been clicked to become selected. You can use the NavBarItemSelectingEventArgs.PrevItem property to obtain the previously selected item within this group.

See Also