Remove exists and reference to GUI vmb
MODIFY
WalletWasabi.Fluent/ViewLocator.cs
WalletWasabi.Fluent/ViewLocator.cs
@@ -5,6 +5,7 @@ using System;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using WalletWasabi.Fluent.ViewModels;
+using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent
{

MODIFY
WalletWasabi.Fluent/ViewModels/NavBarItemViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBarItemViewModel.cs
using ReactiveUI;
using System;
+using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent.ViewModels
{

MODIFY
WalletWasabi.Fluent/ViewModels/NavBarViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBarViewModel.cs
@@ -8,6 +8,7 @@ using System.Reactive;
using System.Reactive.Linq;
using WalletWasabi.Gui;
using WalletWasabi.Wallets;
+using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent.ViewModels
{

MODIFY
WalletWasabi.Fluent/ViewModels/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/SettingsPageViewModel.cs
+using AvalonStudio.MVVM;
using ReactiveUI;
using System.Windows.Input;
+using WalletWasabi.Gui.Validation;
+using WalletWasabi.Models;
+using WalletWasabi.Userfacing;
namespace WalletWasabi.Fluent.ViewModels
{
public class SettingsPageViewModel : NavBarItemViewModel
{
+ private string _password;
+
public SettingsPageViewModel(IScreen screen) : base(screen)
{
Title = "Settings";
NextCommand = ReactiveCommand.Create(() => screen.Router.Navigate.Execute(new HomePageViewModel(screen)));
+
+ this.ValidateProperty(x => x.Password, (IValidationErrors errors) => errors.Add(ErrorSeverity.Error, "Random Error Message"));
+ this.OnPropertyChanged(nameof(Password));
+ }
+
+ public string Password
+ {
+ get => _password;
+ set => this.RaiseAndSetIfChanged(ref _password, value);
}
public ICommand NextCommand { get; }

DELETE
WalletWasabi.Fluent/ViewModels/ViewModelBase.cs
-using ReactiveUI;
-
-namespace WalletWasabi.Fluent.ViewModels
-{
- /// <summary>
- /// Base class for all ViewModels.
- /// </summary>
- public class ViewModelBase : ReactiveObject
- {
- }
-}

MODIFY
WalletWasabi.Fluent/ViewModels/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/WalletViewModel.cs
@@ -10,6 +10,7 @@ using System.Reactive.Linq;
using WalletWasabi.Gui;
using WalletWasabi.Logging;
using WalletWasabi.Wallets;
+using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent.ViewModels
{

Remove exists and reference to GUI vmb