Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

TileNavPane.Buttons Property

Provides access to the collection of buttons in the nav bar.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public TileNavButtonCollection Buttons { get; }

#Property Value

Type Description
TileNavButtonCollection

The TileNavButtonCollection representing the collection of buttons.

#Remarks

The Buttons property provides access to the collection of buttons displayed in the TileNavPane‘s nav bar. This collection can contain the following types of objects:

  • NavButton — a button that can perform an action on a click. One of these buttons can be specified as the Main Button which provides access to the navigation heirarchy (see NavButton.IsMain).
  • TileNavCategory — when added to the Buttons collection, the TileNavCategory is presented as a button supporting the dropdown functionality. When the TileNavCategory is clicked, a dropdown tile bar is displayed containing tiles (the category’s items, specified by the TileNavCategory.Items collection).

The TileNavButtonCollection type provides methods to manipulate elements of this collection. At design time, you can add buttons to the nav bar time using the TileNavPane‘s smart tag menu (SmartTag).

TileNavPane_SmartTagMenuWithoutPointer

If you add a button to the nav bar using the TileNavPane‘s smart tag menu, it is aligned to the right margin of the nav bar. To specify the button’s alignment, use the NavElement.Alignment property.

Note that buttons representing the breadcrumbs links in the nav bar are not contained in the Buttons collection.

See Also