add advanced dialog
ADD
WalletWasabi.Fluent/ViewModels/Wallets/Send/AdvancedSendOptionsViewModel.cs
+using WalletWasabi.Fluent.ViewModels.Navigation;
+
+namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
+{
+ [NavigationMetaData(Title = "Advanced")]
+ public partial class AdvancedSendOptionsViewModel : RoutableViewModel
+ {
+ public AdvancedSendOptionsViewModel()
+ {
+ EnableBack = false;
+ SetupCancel(enableCancel: true, enableCancelOnEscape: true, enableCancelOnPressed: true);
+ }
+ }
+}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -104,6 +104,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
}
});
+ AdvancedOptionsCommand = ReactiveCommand.Create(() => Navigate(NavigationTarget.CompactDialogScreen).To(new AdvancedSendOptionsViewModel()));
+
var nextCommandCanExecute =
this.WhenAnyValue(x => x.AmountBtc, x => x.To).Select(_ => Unit.Default)
.Merge(Observable.FromEventPattern(SuggestionLabels.Labels, nameof(SuggestionLabels.Labels.CollectionChanged)).Select(_ => Unit.Default))
@@ -133,6 +135,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
public ICommand QRCommand { get; }
+ public ICommand AdvancedOptionsCommand { get; }
+
private async Task OnAutoPasteAsync()
{
var isAutoPasteEnabled = Services.UiConfig.Autocopy;

ADD
WalletWasabi.Fluent/Views/Wallets/Send/AdvancedSendOptionsView.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"
+ xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Wallets.Send"
+ xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
+ xmlns:behaviors="using:WalletWasabi.Fluent.Behaviors"
+ mc:Ignorable="d"
+ x:DataType="vm:AdvancedSendOptionsViewModel"
+ x:CompileBindings="True"
+ x:Class="WalletWasabi.Fluent.Views.Wallets.Send.AdvancedSendOptionsView">
+ <c:ContentArea Title="{Binding Title}" Caption=""
+ EnableBack="{Binding EnableBack}"
+ EnableNext="True"
+ NextContent="Done"
+ EnableCancel="{Binding EnableCancel}"
+ IsBusy="{Binding IsBusy}"
+ Height="300" Width="400"
+ ScrollViewer.VerticalScrollBarVisibility="Auto">
+ <DockPanel>
+
+ </DockPanel>
+ </c:ContentArea>
+</UserControl>

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

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
TopItems="{Binding TopSuggestions}"
Suggestions="{Binding Suggestions}" />
</DockPanel>
+ <!-- Advanced -->
+ <Button Classes="h7 plain activeHyperLink" Margin="0 10 0 0"
+ Command="{Binding AdvancedOptionsCommand}"
+ DockPanel.Dock="Bottom"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Bottom"
+ Content="Advanced Options..." />
</DockPanel>
</c:ContentArea>
</UserControl>

add advanced dialog