Back to Devexpress

TileNavPane.Categories Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-tilenavpane-d1dea390.md

latest3.1 KB
Original Source

TileNavPane.Categories Property

Provides access to the collection of navigation categories.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public TileNavCategoryCollection Categories { get; }
vb
<Browsable(False)>
Public ReadOnly Property Categories As TileNavCategoryCollection

Property Value

TypeDescription
TileNavCategoryCollection

The TileNavCategoryCollection object representing the collection of navigation categories.

|

Remarks

The TileNavPane displays either three levels of navigation elements (categories - items - subitems) or two levels (items - subitems). In the first case, categories (TileNavCategory) are the root-level navigation elements. Each category contains items (TileNavCategory.Items), each of which in turn contains sub-items (TileNavItem.SubItems). To add new categories and access existing categories, use the Categories collection.

The reduced two-level hierarchy omits the categories level. To display the two-level navigation hierarchy, set the TileNavPane.MainButtonBehavior property to ShowDefaultCategoryItems and specify the root-level navigation elements (items) via the TileNavPane.DefaultCategory.Items collection, which can be accessed by the TileNavPane.DefaultCategory property.

To manage the collection of TileNavPane‘s categories at design time, you can invoke the TileNavPane Designer.

See Also

DefaultCategory

Items

MainButtonBehavior

TileNavPane Class

TileNavPane Members

DevExpress.XtraBars.Navigation Namespace