using Avalonia; using Avalonia.Controls; using Avalonia.Media; namespace Toolkit.UI.Controls.Avalonia; public class OverflowItem : ListBoxItem { public static readonly StyledProperty BadgeBrushProperty = AvaloniaProperty.Register(nameof(BadgeBrush)); public static readonly StyledProperty BadgePathProperty = AvaloniaProperty.Register(nameof(BadgePath)); public static readonly StyledProperty BadgePlacementProperty = AvaloniaProperty.Register(nameof(BadgePlacement), ContentBadgePlacement.BottomRight); public static readonly StyledProperty BadgeSizeProperty = AvaloniaProperty.Register(nameof(BadgeSize), 14); public static readonly StyledProperty IsBadgeVisibleProperty = AvaloniaProperty.Register(nameof(IsBadgeVisible), true); public IBrush BadgeBrush { get => GetValue(BadgeBrushProperty); set => SetValue(BadgeBrushProperty, value); } public string BadgePath { get => GetValue(BadgePathProperty); set => SetValue(BadgePathProperty, value); } public ContentBadgePlacement BadgePlacement { get => GetValue(BadgePlacementProperty); set => SetValue(BadgePlacementProperty, value); } public double BadgeSize { get => GetValue(BadgeSizeProperty); set => SetValue(BadgeSizeProperty, value); } public bool IsBadgeVisible { get => GetValue(IsBadgeVisibleProperty); set => SetValue(IsBadgeVisibleProperty, value); } }