Enabled back button in settings page
MODIFY
WalletWasabi.Fluent/ViewModels/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/SettingsPageViewModel.cs
@@ -19,6 +19,8 @@ namespace WalletWasabi.Fluent.ViewModels
{
Title = "Settings";
+ BackCommand = ReactiveCommand.Create(() => navigationState.DialogScreen?.Invoke().Router.NavigationStack.Clear());
+
NextCommand = ReactiveCommand.Create(() => navigationState.HomeScreen?.Invoke().Router.Navigate.Execute(new AddWalletPageViewModel(navigationState)));
OpenDialogCommand = ReactiveCommand.CreateFromTask(async () => await ConfirmSetting.Handle("Please confirm the setting:").ToTask());
@@ -63,6 +65,7 @@ namespace WalletWasabi.Fluent.ViewModels
set => this.RaiseAndSetIfChanged(ref _randomString, value);
}
+ public ICommand BackCommand { get; }
public ICommand NextCommand { get; }
public ICommand OpenDialogCommand { get; }
public ICommand OpenDialogScreenCommand { get; }

MODIFY
WalletWasabi.Fluent/Views/SettingsPageView.axaml
WalletWasabi.Fluent/Views/SettingsPageView.axaml
xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="WalletWasabi.Fluent.Views.SettingsPageView">
- <c:ContentArea Title="Settings" Caption="Some development settings:">
+ <c:ContentArea Title="Settings" Caption="Some development settings:"
+ EnableBack="True">
<StackPanel Spacing="10">
<Button Command="{Binding NextCommand}" Content="Next" />
<Button Command="{Binding OpenDialogCommand}" Content="Open Dialog" />

Enabled back button in settings page