Class BreadcrumbBar
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
ItemClickedEvent
Identifies the ItemClicked routed event.
public static readonly RoutedEvent ItemClickedEvent
Field Value
TemplateButtonCommandProperty
Identifies the TemplateButtonCommand dependency property.
public static readonly DependencyProperty TemplateButtonCommandProperty
Field Value
Properties
Command
Gets or sets custom command executed after selecting the item.
[Bindable(true)]
[Localizability(LocalizationCategory.NeverLocalize)]
public ICommand? Command { get; set; }
Property Value
TemplateButtonCommand
Gets the RelayCommand<T> triggered after clicking
public IRelayCommand TemplateButtonCommand { get; }
Property Value
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
objectThe item to check.
Returns
OnItemClicked(object, int)
protected virtual void OnItemClicked(object item, int index)
Parameters
Events
ItemClicked
Occurs when an item is clicked in the BreadcrumbBar.
public event TypedEventHandler<BreadcrumbBar, BreadcrumbBarItemClickedEventArgs> ItemClicked