remove restriction for only accepting numbers
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/AdvancedSendOptionsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/AdvancedSendOptionsViewModel.cs
using System;
using System.Globalization;
+using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using NBitcoin;
@@ -68,6 +69,12 @@ public partial class AdvancedSendOptionsViewModel : DialogViewModelBase<Unit>
return;
}
+ if (customFeeString.Any(c => !char.IsDigit(c) && c != '.'))
+ {
+ errors.Add(ErrorSeverity.Error, "The field only accepts numbers.");
+ return;
+ }
+
if (!decimal.TryParse(customFeeString, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var value))
{
errors.Add(ErrorSeverity.Error, "The entered fee is not valid.");

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/AdvancedSendOptionsView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/AdvancedSendOptionsView.axaml
<TextBox x:Name="transactionFeeTb" MaxLength="250" Text="{Binding CustomFee}" Watermark="Enter a custom fee rate (sat/vByte)">
<i:Interaction.Behaviors>
<behaviors:FocusOnAttachedBehavior />
- <behaviors:NumberBoxBehavior />
</i:Interaction.Behaviors>
</TextBox>
</DockPanel>

remove restriction for only accepting numbers