Skip to main content

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.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

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