Add back and cancel button commands
MODIFY
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
using System.Reactive.Linq;
using ReactiveUI;
using System;
+using System.Windows.Input;
namespace WalletWasabi.Fluent.ViewModels
{
@@ -13,6 +14,9 @@ namespace WalletWasabi.Fluent.ViewModels
{
Title = "Add Wallet";
+ BackCommand = ReactiveCommand.Create(() => navigationState.DialogScreen?.Invoke().Router.NavigationStack.Clear());
+ CancelCommand = ReactiveCommand.Create(() => navigationState.DialogScreen?.Invoke().Router.NavigationStack.Clear());
+
this.WhenAnyValue(x => x.WalletName)
.Select(x => !string.IsNullOrWhiteSpace(x))
.Subscribe(x => OptionsEnabled = x);
@@ -20,6 +24,9 @@ namespace WalletWasabi.Fluent.ViewModels
public override string IconName => "add_circle_regular";
+ public ICommand BackCommand { get; }
+ public ICommand CancelCommand { get; }
+
public string WalletName
{
get => _walletName;

Add back and cancel button commands