Improve Send tab
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:FeeConfirmationTargetConverter x:Key="FeeConfirmationTargetConverter" />
+ <converters:AmountForegroundConverter x:Key="AmountForegroundConverter" />
</UserControl.Resources>
<i:Interaction.Behaviors>
<behaviors:ClearPropertyOnLostFocusBehavior TargetProperty="{Binding SelectedCoin}" />
</TextBox>
<StackPanel Orientation="Horizontal" Gap="10">
<Button Content="{Binding MaxClear}" Command="{Binding MaxCommand}" />
- <TextBox Text="{Binding Amount}" Watermark="Amount (BTC)" UseFloatingWatermark="True" MinWidth="124" MinHeight="46" />
+ <TextBox Foreground="{Binding IsMax, Converter={StaticResource AmountForegroundConverter}}" IsReadOnly="{Binding IsMax}" Text="{Binding Amount}" Watermark="Amount (BTC)" UseFloatingWatermark="True" MinWidth="124" MinHeight="46" />
<StackPanel>
<StackPanel Orientation="Horizontal" Gap="10">
<TextBlock Text="Fee:" />
</StackPanel>
<StackPanel Orientation="Horizontal" Gap="4">
<TextBlock Text="Confirmation Expected In:" />
- <TextBlock Text="{Binding Fee, Converter={StaticResource FeeConfirmationTargetConverter}}" />
+ <TextBlock Foreground="YellowGreen" Text="{Binding Fee, Converter={StaticResource FeeConfirmationTargetConverter}}" />
</StackPanel>
</StackPanel>
</StackPanel>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -158,7 +158,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private void ResetMax()
{
- _isMax = false;
+ IsMax = false;
MaxClear = "Max";
_ignoreAmountChanges = true;

MODIFY
WalletWasabi.Gui/Converters/FeeConfirmationTargetConverter.cs
WalletWasabi.Gui/Converters/FeeConfirmationTargetConverter.cs
@@ -31,7 +31,7 @@ namespace WalletWasabi.Gui.Converters
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
- throw new NotImplementedException();
+ throw new NotSupportedException();
}
}
}

Improve Send tab