Added IsNextEnabled
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/LegalDocumentsViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/LegalDocumentsViewModel.cs
@@ -4,15 +4,19 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
{
public class LegalDocumentsViewModel : RoutableViewModel
{
- public LegalDocumentsViewModel(string content, bool backOnNext)
+ public LegalDocumentsViewModel(string content, bool isNextEnabled)
{
Content = content;
- NextCommand = backOnNext ? BackCommand : CancelCommand;
+ NextCommand = BackCommand;
+
+ IsNextEnabled = isNextEnabled;
}
public override NavigationTarget DefaultTarget => NavigationTarget.DialogScreen;
public string Content { get; }
+
+ public bool IsNextEnabled { get; }
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/TermsAndConditionsViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/TermsAndConditionsViewModel.cs
@@ -18,7 +18,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
{
var content = await File.ReadAllTextAsync(legalDocuments.FilePath);
- var legalDocs = new LegalDocumentsViewModel(content, backOnNext: true);
+ var legalDocs = new LegalDocumentsViewModel(content, true);
Navigate().To(legalDocs);
});

MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -164,7 +164,7 @@ namespace WalletWasabi.Fluent.ViewModels
{
var content = await File.ReadAllTextAsync(legalDocuments.FilePath);
- var legalDocs = new LegalDocumentsViewModel(content, backOnNext: false);
+ var legalDocs = new LegalDocumentsViewModel(content, false);
return legalDocs;
});

MODIFY
WalletWasabi.Fluent/Views/AddWallet/LegalDocumentsView.axaml
WalletWasabi.Fluent/Views/AddWallet/LegalDocumentsView.axaml
x:Class="WalletWasabi.Fluent.Views.AddWallet.LegalDocumentsView">
<c:ContentArea Title="Terms and Conditions"
Caption="Please read the small print."
- EnableNext="True" NextContent="Continue" FocusNext="True">
+ EnableCancel="{Binding !IsNextEnabled}"
+ EnableNext="{Binding IsNextEnabled}" NextContent="Continue" FocusNext="{Binding IsNextEnabled}">
<TextBlock TextWrapping="Wrap" Text="{Binding Content}" />
</c:ContentArea>
</UserControl>
\ No newline at end of file

Added IsNextEnabled