/* Based on Windows UI Library
Copyright(c) Microsoft Corporation.All rights reserved. */
using WPFluent.Input;
using System.Collections.Specialized;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
// ReSharper disable once CheckNamespace
namespace WPFluent.Controls;
///
/// The control provides the direct path of pages or folders to the current location.
///
///
/// /// <ui:BreadcrumbBar x:Name="BreadcrumbBar" /> ///
///
[StyleTypedProperty(Property = nameof(ItemContainerStyle), StyleTargetType = typeof(BreadcrumbBarItem))]
public class BreadcrumbBar : System.Windows.Controls.ItemsControl
{
///
/// Identifies the dependency property.
///
public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(
nameof(Command),
typeof(ICommand),
typeof(BreadcrumbBar),
new PropertyMetadata(null));
///
/// Identifies the routed event.
///
public static readonly RoutedEvent ItemClickedEvent = EventManager.RegisterRoutedEvent(
nameof(ItemClicked),
RoutingStrategy.Bubble,
typeof(TypedEventHandler),
typeof(BreadcrumbBar));
///
/// Identifies the dependency property.
///
public static readonly DependencyProperty TemplateButtonCommandProperty = DependencyProperty.Register(
nameof(TemplateButtonCommand),
typeof(IRelayCommand),
typeof(BreadcrumbBar),
new PropertyMetadata(null));
///
/// Initializes a new instance of the class.
///
public BreadcrumbBar()
{
SetValue(TemplateButtonCommandProperty, new RelayCommand