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

NavBarControl() Constructor

Creates a new NavBarControl object.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v18.2.dll

Declaration

public NavBarControl()

Remarks

Use the constructor to create a new NavBarControl control at runtime. No items and groups are created when using the constructor. Thus, you should modify item and group collections manually. Use the NavItemCollection and NavBarGroup class methods for this purpose. These objects are accessed via the NavBarControl.Items and NavBarControl.Groups properties. You should additionally use the NavLinkCollection class methods to assign items to groups. This object is accessed via the NavBarGroup.ItemLinks property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NavBarControl() constructor.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also