Skip to main content

BreadcrumbBar

Description​

Use BreadcrumbBar to show the path to the current location and jump back to any ancestor.

BreadcrumbBar in light mode BreadcrumbBar in dark mode

Example usage​

<fluence:BreadcrumbBar ItemsSource="{Binding PathSegments}" />

Key properties​

PropertyDefaultPurpose
ItemsSourcenull (WPF default)Collection of path segments.
ItemTemplatenull (WPF default)Template for each segment.

State and behavior​

The current path is displayed as clickable ancestors. At constrained widths, the trail scrolls to keep the current item in view and an overflow button opens a menu of the full trail. Choosing a menu item raises ItemClicked with the original data item and its zero-based index. The menu respects DisplayMemberPath, ItemTemplate, ItemTemplateSelector, and ItemStringFormat when set. UIElement content stays in the trail; the menu uses its TextBlock.Text when available or a numbered location label. Resizing updates the visible trail.

Parts​

BreadcrumbBar creates item containers for the visible path segments. The screenshots show BreadcrumbBarItem inside BreadcrumbBar.

Use it through BreadcrumbBar when people need to return to an ancestor location.

The parent control capture above shows this part in context.

<fluence:BreadcrumbBar ItemsSource="{Binding PathSegments}" />

A breadcrumb item is created inside BreadcrumbBar from the path; selecting an ancestor raises ItemClicked.

Events​

ItemClicked reports the chosen segment.

Reference​