feat: implement JumpTo command in ApplicationViewModel and update navigation handling. (#803)

This commit is contained in:
Zhang Dian
2025-10-23 14:58:22 +08:00
committed by GitHub
parent 7c7701aade
commit d495c98967
5 changed files with 30 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging;
namespace Ursa.Demo.ViewModels;
public partial class ApplicationViewModel : ObservableObject
{
[RelayCommand]
private void JumpTo(string header)
{
WeakReferenceMessenger.Default.Send(header, "JumpTo");
}
}