Use KeyUp instead of Text property
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/SendTabView.xaml
Watermark="{Binding AmountWatermarkText}"
UseFloatingWatermark="True"
MinWidth="124"
- MinHeight="46" />
+ MinHeight="46">
+ <i:Interaction.Behaviors>
+ <behaviors:CommandOnKeyUpBehavior Command="{Binding AmountKeyUpCommand}" />
+ </i:Interaction.Behaviors>
+ </controls:ExtendedTextBox>
<StackPanel Opacity="{Binding FeeControlOpacity}">
<StackPanel IsVisible="{Binding !MinMaxFeeTargetsEqual}" Orientation="Horizontal" Spacing="10">
<TextBlock Text="Fee:" />

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -121,10 +121,9 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
FeeDisplayFormat = (FeeDisplayFormat)(Enum.ToObject(typeof(FeeDisplayFormat), Global.UiConfig.FeeDisplayFormat) ?? FeeDisplayFormat.SatoshiPerByte);
SetFeesAndTexts();
- this.WhenAnyValue(x => x.AmountText)
- .ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(amount =>
+ AmountKeyUpCommand = ReactiveCommand.Create((KeyEventArgs key) =>
{
+ var amount = AmountText;
if (!IsMax)
{
// Correct amount
@@ -870,6 +869,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public ReactiveCommand<bool, Unit> HighLightFeeSliderCommand { get; }
+ public ReactiveCommand<KeyEventArgs, Unit> AmountKeyUpCommand { get; }
+
public bool IsTransactionBuilder { get; }
public override void OnOpen()

Use KeyUp instead of Text property