Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavBarItem.AllowAutoSelect Property

Gets or sets whether auto-selection is enabled for all links of the current NavBarItem. This property is in effect in the LinkSelectionModeType.OneInGroupAndAllowAutoSelect mode.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowAutoSelect { get; set; }

#Property Value

Type Default Description
Boolean true

true if auto-selection is enabled for all links of the current NavBarItem; otherwise, false.

#Remarks

This property is in effect in the LinkSelectionModeType.OneInGroupAndAllowAutoSelect mode that can be enabled via the NavBarControl.LinkSelectionMode property.

In the Navigation Pane and the Side Bar Views only one group of the NavBarControl is active at one time. On group activation, if the group being activated does not contain a selected link, the first link in this group is auto-selected (assigned to the NavBarControl.SelectedLink property). You can disable auto-selection for all links of the current NavBarItem by setting the AllowAutoSelect property to false.

You can override the current setting for particular links using the NavBarItemLink.AllowAutoSelect property.

See Also