/* Based on Windows UI Library */ // ReSharper disable once CheckNamespace namespace WPFluent.Controls; /// /// Represents an item in a control. /// public class BreadcrumbBarItem : System.Windows.Controls.ContentControl { /// /// Identifies the dependency property. /// public static readonly DependencyProperty IconMarginProperty = DependencyProperty.Register( nameof(IconMargin), typeof(Thickness), typeof(BreadcrumbBarItem), new PropertyMetadata(new Thickness(0))); /// /// Identifies the dependency property. /// public static readonly DependencyProperty IconProperty = DependencyProperty.Register( nameof(Icon), typeof(IconElement), typeof(BreadcrumbBarItem), new PropertyMetadata(null, null, IconElement.Coerce)); /// /// Identifies the dependency property. /// public static readonly DependencyProperty IsLastProperty = DependencyProperty.Register( nameof(IsLast), typeof(bool), typeof(BreadcrumbBarItem), new PropertyMetadata(false)); /// /// Gets or sets displayed . /// public IconElement Icon { get => (IconElement)GetValue(IconProperty); set => SetValue(IconProperty, value); } /// /// Gets or sets get or sets margin for the /// public Thickness IconMargin { get => (Thickness)GetValue(IconMarginProperty); set => SetValue(IconMarginProperty, value); } /// /// Gets or sets a value indicating whether the current item is the last one. /// public bool IsLast { get => (bool)GetValue(IsLastProperty); set => SetValue(IsLastProperty, value); } }