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

@@ -1,5 +1,8 @@
using System.Collections.ObjectModel;
using System.Windows.Input;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Ursa.Controls;
namespace Ursa.Demo.ViewModels;
@@ -24,4 +27,14 @@ public class BreadcrumbDemoItem: ObservableObject
{
public string Section { get; set; }
public string Icon { get; set; }
public ICommand Command { get; set; }
public BreadcrumbDemoItem()
{
Command = new RelayCommand(() =>
{
MessageBox.ShowOverlayAsync(Section);
});
}
}