ensure amountBtc property is synchronised
MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
@@ -5,6 +5,7 @@ using System.Text.RegularExpressions;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
+using Avalonia.Data;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Threading;
@@ -15,7 +16,7 @@ namespace WalletWasabi.Fluent.Controls
public class CurrencyEntryBox : TextBox
{
public static readonly StyledProperty<decimal> AmountBtcProperty =
- AvaloniaProperty.Register<CurrencyEntryBox, decimal>(nameof(AmountBtc));
+ AvaloniaProperty.Register<CurrencyEntryBox, decimal>(nameof(AmountBtc), defaultBindingMode: BindingMode.TwoWay);
public static readonly StyledProperty<decimal> ConversionProperty =
AvaloniaProperty.Register<CurrencyEntryBox, decimal>(nameof(Conversion));

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
<DockPanel>
<Label DockPanel.Dock="Left" Content="_Amount:" Target="amountTb" />
- <c:CurrencyEntryBox x:Name="amountTb" ConversionRate="{Binding ExchangeRate}" ConversionCurrencyCode="USD" />
+ <c:CurrencyEntryBox x:Name="amountTb" AmountBtc="{Binding AmountBtc}" ConversionRate="{Binding ExchangeRate}" ConversionCurrencyCode="USD" />
</DockPanel>
<DockPanel>

ensure amountBtc property is synchronised