add wallet settings dialog
ADD
WalletWasabi.Fluent/ViewModels/Wallets/WalletSettingsViewModel.cs
+using WalletWasabi.Fluent.ViewModels.Navigation;
+
+namespace WalletWasabi.Fluent.ViewModels.Wallets
+{
+ [NavigationMetaData(Title="Wallet Settings")]
+ public partial class WalletSettingsViewModel : RoutableViewModel
+ {
+ public WalletSettingsViewModel(WalletViewModel walletViewModel)
+ {
+
+ }
+ }
+}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
@@ -181,6 +181,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
Navigate(NavigationTarget.DialogScreen).To(new WalletInfoViewModel(this));
});
+
+ WalletSettingsCommand = ReactiveCommand.Create(() => Navigate(NavigationTarget.DialogScreen).To(new WalletSettingsViewModel(this)));
}
public ICommand SendCommand { get; }
@@ -191,6 +193,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
public ICommand WalletInfoCommand { get; }
+ public ICommand WalletSettingsCommand { get; }
+
private CompositeDisposable Disposables { get; set; }
public HistoryViewModel History { get; }

ADD
WalletWasabi.Fluent/Views/Wallets/WalletSettingsView.axaml
+<UserControl xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:c="using:WalletWasabi.Fluent.Controls"
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+ xmlns:wallets="clr-namespace:WalletWasabi.Fluent.ViewModels.Wallets"
+ x:DataType="wallets:WalletSettingsViewModel"
+ x:CompileBindings="True"
+ x:Class="WalletWasabi.Fluent.Views.Wallets.WalletSettingsView">
+ <c:ContentArea EnableNext="True" NextContent="Done"
+ EnableCancel="{Binding EnableCancel}"
+ EnableBack="{Binding EnableBack}" />
+</UserControl>

ADD
WalletWasabi.Fluent/Views/Wallets/WalletSettingsView.axaml.cs
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace WalletWasabi.Fluent.Views.Wallets
+{
+ public class WalletSettingsView : UserControl
+ {
+ public WalletSettingsView()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}

MODIFY
WalletWasabi.Fluent/Views/Wallets/WalletView.axaml
WalletWasabi.Fluent/Views/Wallets/WalletView.axaml
<PathIcon Data="{StaticResource info_regular}" />
</MenuItem.Icon>
</MenuItem>
- <MenuItem Header="Wallet Settings">
+ <MenuItem Header="Wallet Settings" Command="{Binding WalletSettingsCommand}">
<MenuItem.Icon>
<PathIcon Data="{StaticResource settings_regular}" />
</MenuItem.Icon>

add wallet settings dialog