feat: implement JumpTo command in ApplicationViewModel and update navigation handling. (#803)
This commit is contained in:
14
demo/Ursa.Demo/ViewModels/ApplicationViewModel.cs
Normal file
14
demo/Ursa.Demo/ViewModels/ApplicationViewModel.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user