Replace MaxClearConverter by BooleanStringConverter
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/SendTabView.xaml
xmlns:local="clr-namespace:WalletWasabi.Gui.Controls.WalletExplorer;assembly=WalletWasabi.Gui">
<UserControl.Resources>
<converters:AmountForegroundConverter x:Key="AmountForegroundConverter" />
- <converters:MaxClearBoolStringConverter x:Key="MaxClearBoolStringConverter" />
+ <converters:BooleanStringConverter x:Key="BooleanStringConverter" />
</UserControl.Resources>
<i:Interaction.Behaviors>
<behaviors:ClearPropertyOnLostFocusBehavior TargetProperty="{Binding SelectedCoin}" />
</ItemsControl>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="10">
- <Button Content="{Binding IsMax, Converter={StaticResource MaxClearBoolStringConverter}}" Command="{Binding MaxCommand}" VerticalAlignment="Top" Height="40" />
+ <Button Content="{Binding IsMax, Converter={StaticResource BooleanStringConverter}, ConverterParameter=Clear:Max}" Command="{Binding MaxCommand}" VerticalAlignment="Top" Height="40" />
<controls:ExtendedTextBox Foreground="{Binding IsMax, Converter={StaticResource AmountForegroundConverter}}" IsReadOnly="{Binding IsMax}" Text="{Binding Amount}" ToolTip.Tip="{Binding AmountToolTip}" Watermark="{Binding AmountWatermarkText}" UseFloatingWatermark="True" MinWidth="124" MinHeight="46" />
<StackPanel>
<StackPanel Orientation="Horizontal" Spacing="10">

DELETE
WalletWasabi.Gui/Converters/MaxClearBoolStringConverter.cs
-using Avalonia.Data.Converters;
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Text;
-
-namespace WalletWasabi.Gui.Converters
-{
- public class MaxClearBoolStringConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value is bool isMax)
- {
- return isMax ? "Clear" : "Max";
- }
- else
- {
- throw new TypeArgumentException(value, typeof(bool), nameof(value));
- }
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotSupportedException();
- }
- }
-}

Replace MaxClearConverter by BooleanStringConverter