BreadcrumbBar
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class BreadcrumbBar : ItemsControl
A horizontal trail of crumbs mirroring the WinUI 3 BreadcrumbBar: each item renders as a clickable BreadcrumbBarItem followed by a chevron separator, with the last crumb shown as the current location (no trailing chevron, primary text, SemiBold).
Remarks: Items come from ItemsSource (or the inline items collection) and render through the normal ItemsControl mechanics, so DisplayMemberPath and ItemTemplate are respected. Subscribe to ItemClicked to navigate; the event is raised for every crumb including the last one, matching WinUI.
WinUI collapses leading crumbs into an ellipsis crumb when the bar is width-constrained; that overflow collapse is a deliberate v1 omission here. The strip simply extends to its natural width and clips when constrained.
Base type: ItemsControl (including inherited WPF and .NET members)
Constructors
BreadcrumbBar
public BreadcrumbBar()
Initializes a new instance of the BreadcrumbBar class and subscribes to child Click events for aggregation into ItemClicked.
Methods
GetContainerForItemOverride
protected override DependencyObject GetContainerForItemOverride()
Documentation inherited from the ItemsControl API.
IsItemItsOwnContainerOverride
protected override bool IsItemItsOwnContainerOverride(object item)
Documentation inherited from the ItemsControl API.
OnCreateAutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
Documentation inherited from the ItemsControl API.
OnItemsChanged
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Documentation inherited from the ItemsControl API.
PrepareContainerForItemOverride
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Documentation inherited from the ItemsControl API.
Events
ItemClicked
public event EventHandler<BreadcrumbBarItemClickedEventArgs>? ItemClicked
Occurs when any crumb is clicked, including the last (current) one, matching the WinUI 3 BreadcrumbBar contract. The event args carry the clicked data item and its zero-based index in the items collection.