feat: implement command, fix icon foreground in light mode.

This commit is contained in:
rabbitism
2024-03-03 16:09:17 +08:00
parent 4e5d9af7b5
commit 2790066333
4 changed files with 19 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Metadata;
using Avalonia.Controls.Templates;
using Avalonia.Input;
namespace Ursa.Controls;
@@ -47,8 +48,9 @@ public class BreadcrumbItem: ContentControl
set => SetValue(IconTemplateProperty, value);
}
static BreadcrumbItem()
protected override void OnPointerPressed(PointerPressedEventArgs e)
{
base.OnPointerPressed(e);
Command?.Execute(null);
}
}