using System.Windows.Input; using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Metadata; using Avalonia.Controls.Templates; namespace Ursa.Controls; [PseudoClasses(PC_Last)] public class BreadcrumbItem: ContentControl { public const string PC_Last = ":last"; public static readonly StyledProperty SeparatorProperty = AvaloniaProperty.Register( nameof(Separator)); public object? Separator { get => GetValue(SeparatorProperty); set => SetValue(SeparatorProperty, value); } public static readonly StyledProperty IconProperty = AvaloniaProperty.Register( nameof(Icon)); public object? Icon { get => GetValue(IconProperty); set => SetValue(IconProperty, value); } public static readonly StyledProperty CommandProperty = AvaloniaProperty.Register( nameof(Command)); public ICommand? Command { get => GetValue(CommandProperty); set => SetValue(CommandProperty, value); } public static readonly StyledProperty IconTemplateProperty = AvaloniaProperty.Register( nameof(IconTemplate)); public IDataTemplate? IconTemplate { get => GetValue(IconTemplateProperty); set => SetValue(IconTemplateProperty, value); } static BreadcrumbItem() { } }