BreadcrumbBar
Description
Use BreadcrumbBar to show the path to the current location and jump back to any ancestor.
Example usage
- XAML
- C#
<fluence:BreadcrumbBar ItemsSource="{Binding PathSegments}" />
var path = new Fluence.Wpf.Controls.BreadcrumbBar();
path.Items.Add("Home");
Key properties
| Property | Default | Purpose |
|---|---|---|
ItemsSource | null (WPF default) | Collection of path segments. |
ItemTemplate | null (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
BreadcrumbBarItem
Description
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.
Example usage
<fluence:BreadcrumbBar ItemsSource="{Binding PathSegments}" />
State and behavior
A breadcrumb item is created inside BreadcrumbBar from the path; selecting an ancestor raises ItemClicked.
Reference
Events
ItemClicked reports the chosen segment.