Enable Go Back
This enables users to go back and read important information in case they skipped accidentally.
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/WelcomePageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/WelcomePageViewModel.cs
using System.Reactive;
using System.Reactive.Linq;
-using Avalonia.Media.Imaging;
using ReactiveUI;
-using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.ViewModels.Dialogs.Base;
namespace WalletWasabi.Fluent.ViewModels.AddWallet;
@@ -24,6 +22,10 @@ public partial class WelcomePageViewModel : DialogViewModelBase<Unit>
SelectedIndex = 0;
NextCommand = ReactiveCommand.Create(OnNext);
+ var canGoBackChanged = this.WhenAnyValue(x => x.SelectedIndex, i => i > 0);
+ BackCommand = ReactiveCommand.Create(() => SelectedIndex--, canGoBackChanged);
+ canGoBackChanged
+ .Subscribe(canGoBack => EnableBack = canGoBack);
this.WhenAnyValue(x => x.SelectedIndex)
.Subscribe(x =>

MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -136,7 +136,7 @@ public partial class MainViewModel : ViewModelBase
RxApp.MainThreadScheduler.Schedule(async () =>
{
- if (!Services.WalletManager.HasWallet() || Services.UiConfig.Oobe)
+ if (Services.WalletManager.HasWallet() || Services.UiConfig.Oobe)
{
IsOobeBackgroundVisible = true;

MODIFY
WalletWasabi.Fluent/Views/AddWallet/WelcomePageView.axaml
WalletWasabi.Fluent/Views/AddWallet/WelcomePageView.axaml
<behaviors:FocusOnAttachedBehavior />
</i:Interaction.Behaviors>
<controls:ContentArea EnableCancel="False"
- EnableBack="False"
+ EnableBack="{Binding EnableBack}"
EnableNext="True"
ClipToBounds="False"
NextContent="{Binding NextLabel}"

Enable Go Back

This enables users to go back and read important information in case they skipped accidentally.