Prepare new hardware wallet component
ADD
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/HardwareWalletView.xaml.cs
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets
+{
+ public class HardwareWalletView : UserControl
+ {
+ public HardwareWalletView()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}

ADD
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/HardwareWalletViewModel.cs
+using System;
+using System.Collections.Generic;
+using System.Text;
+using WalletWasabi.Gui.ViewModels;
+
+namespace WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets
+{
+ public class HardwareWalletViewModel : CategoryViewModel
+ {
+ public HardwareWalletViewModel() : base("Hardware Wallet")
+ {
+ }
+ }
+}

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
@@ -8,6 +8,7 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Gui.Tabs.WalletManager.GenerateWallets;
+using WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets;
using WalletWasabi.Gui.Tabs.WalletManager.LoadWallets;
using WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets;
using WalletWasabi.Gui.ViewModels;
@@ -24,12 +25,10 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
private CategoryViewModel _selectedCategory;
private ViewModelBase _currentView;
private LoadWalletViewModel LoadWalletViewModelDesktop { get; }
- private LoadWalletViewModel LoadWalletViewModelHardware { get; }
public WalletManagerViewModel() : base("Wallet Manager")
{
LoadWalletViewModelDesktop = new LoadWalletViewModel(this, LoadWalletType.Desktop);
- LoadWalletViewModelHardware = new LoadWalletViewModel(this, LoadWalletType.Hardware);
Categories = new ObservableCollection<CategoryViewModel>
{
@@ -37,7 +36,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
new RecoverWalletViewModel(this),
LoadWalletViewModelDesktop,
new LoadWalletViewModel(this, LoadWalletType.Password),
- LoadWalletViewModelHardware
+ new HardwareWalletViewModel()
};
SelectedCategory = Categories.FirstOrDefault();

MODIFY
WalletWasabi.Gui/ViewModels/CategoryViewModel.cs
WalletWasabi.Gui/ViewModels/CategoryViewModel.cs
@@ -4,7 +4,7 @@ using System.Text;
namespace WalletWasabi.Gui.ViewModels
{
- internal class CategoryViewModel : ViewModelBase
+ public class CategoryViewModel : ViewModelBase
{
public CategoryViewModel(string title)
{

Prepare new hardware wallet component