Back to Devexpress

NavBarItem.AllowAutoSelect Property

windowsforms-devexpress-dot-xtranavbar-dot-navbaritem-c8cac187.md

latest3.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowAutoSelect { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowAutoSelect As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

SelectedLink

AllowAutoSelect

UpdateSelectedLink()

LinkSelectionMode

Navigation Bar

NavBarItem Class

NavBarItem Members

DevExpress.XtraNavBar Namespace