Welcome Page - removed back button/action
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/WelcomePageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/WelcomePageViewModel.cs
@@ -24,12 +24,11 @@ public partial class WelcomePageViewModel : DialogViewModelBase<Unit>
SelectedIndex = 0;
NextCommand = ReactiveCommand.Create(OnNext);
- BackCommand = ReactiveCommand.Create(OnBack, this.WhenAnyValue(x => x.SelectedIndex).Select(x => x > 0));
+
this.WhenAnyValue(x => x.SelectedIndex)
.Subscribe(x =>
{
NextLabel = x < NumberOfPages - 1 ? "Continue" : "Get Started";
- EnableBack = x > 0;
EnableNextKey = x < NumberOfPages - 1;
});
@@ -39,7 +38,6 @@ public partial class WelcomePageViewModel : DialogViewModelBase<Unit>
.Subscribe(x =>
{
EnableNextKey = false;
- EnableBack = false;
});
}

MODIFY
WalletWasabi.Fluent/Views/AddWallet/WelcomePageView.axaml
WalletWasabi.Fluent/Views/AddWallet/WelcomePageView.axaml
<behaviors:FocusOnAttachedBehavior />
</i:Interaction.Behaviors>
<controls:ContentArea EnableCancel="False"
- EnableBack="{Binding EnableBack}"
+ EnableBack="False"
EnableNext="True"
NextContent="{Binding NextLabel}"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
DockPanel.Dock="Top"
Margin="0 10">
<i:Interaction.Behaviors>
- <behaviors:ExecuteCommandOnKeyDownBehavior Command="{Binding BackCommand}" IsEnabled="{Binding EnableBack}" Key="Left"/>
<behaviors:ExecuteCommandOnKeyDownBehavior Command="{Binding NextCommand}" IsEnabled="{Binding EnableNextKey}" Key="Right"/>
</i:Interaction.Behaviors>
<Carousel.Styles>

Welcome Page - removed back button/action