Table of Contents

Class BreadcrumbBar

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

The BreadcrumbBar control provides the direct path of pages or folders to the current location.

[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(BreadcrumbBarItem))]
public class BreadcrumbBar : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage
Inheritance
BreadcrumbBar
Implements
Inherited Members

Examples

<ui:BreadcrumbBar x:Name="BreadcrumbBar" />

Constructors

BreadcrumbBar()

Initializes a new instance of the BreadcrumbBar class.

public BreadcrumbBar()

Fields

CommandProperty

Identifies the Command dependency property.

public static readonly DependencyProperty CommandProperty

Field Value

DependencyProperty

ItemClickedEvent

Identifies the ItemClicked routed event.

public static readonly RoutedEvent ItemClickedEvent

Field Value

RoutedEvent

TemplateButtonCommandProperty

Identifies the TemplateButtonCommand dependency property.

public static readonly DependencyProperty TemplateButtonCommandProperty

Field Value

DependencyProperty

Properties

Command

Gets or sets custom command executed after selecting the item.

[Bindable(true)]
[Localizability(LocalizationCategory.NeverLocalize)]
public ICommand? Command { get; set; }

Property Value

ICommand

TemplateButtonCommand

Gets the RelayCommand<T> triggered after clicking

public IRelayCommand TemplateButtonCommand { get; }

Property Value

IRelayCommand

Methods

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject

The element that is used to display the given item.

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

protected override bool IsItemItsOwnContainerOverride(object item)

Parameters

item object

The item to check.

Returns

bool

true if the item is (or is eligible to be) its own container; otherwise, false.

OnItemClicked(object, int)

protected virtual void OnItemClicked(object item, int index)

Parameters

item object
index int

Events

ItemClicked

Occurs when an item is clicked in the BreadcrumbBar.

public event TypedEventHandler<BreadcrumbBar, BreadcrumbBarItemClickedEventArgs> ItemClicked

Event Type

TypedEventHandler<BreadcrumbBar, BreadcrumbBarItemClickedEventArgs>