Skip to main content

NavBarControl.ActiveGroup Property

Gets or sets the currently active group. This is a dependency property.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v24.1.dll

NuGet Package: DevExpress.Wpf.NavBar

Declaration

[Browsable(false)]
public NavBarGroup ActiveGroup { get; set; }

Property Value

Type Description
NavBarGroup

A NavBarGroup object representing the currently active group.

Remarks

Use the ActiveGroup property to specify the currently active group within the NavBarControl.

In Side Bar and Navigation Pane views, setting this property implies expanding the specified group and collapsing all others. In the Explorer Bar view, this property doesn’t affect the expanded state of groups - it specifies the group whose header was last clicked by an end-user.

Note that the active group can be additionally changed within the NavBarControl by using the NavBarCommands.SetActiveGroup command or the NavBarViewBase.SetActiveGroup method.

To respond to changing the active group within the NavBarControl, you can handle the NavBarViewBase.ActiveGroupChanging and NavBarViewBase.ActiveGroupChanged events.

See Also