Improve Max/Clear toggle
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/SendTabView.xaml
</ToolTip.Tip>
</TextBox>
<StackPanel Orientation="Horizontal" Gap="10">
- <Button Content="Max" Command="{Binding MaxCommand}" />
+ <Button Content="{Binding MaxClear}" Command="{Binding MaxCommand}" />
<TextBox Text="{Binding Amount}" Watermark="Amount (BTC)" UseFloatingWatermark="True" MinWidth="124" MinHeight="46" />
<StackPanel>
<StackPanel Orientation="Horizontal" Gap="10">

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -16,6 +16,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private CoinListViewModel _coinList;
private string _buildTransactionButtonText;
private bool _isMax;
+ private string _maxClear;
private string _amount;
private bool _ignoreAmountChanges;
private int _fee;
@@ -43,6 +44,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
BuildTransactionButtonText = BuildTransactionButtonTextString;
+ MaxClear = "Max";
+
this.WhenAnyValue(x => x.Amount).Subscribe(_ =>
{
if (!_ignoreAmountChanges)
@@ -146,6 +149,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
IsMax = true;
+ MaxClear = "Clear";
_ignoreAmountChanges = true;
Amount = "All Selected Coins!";
@@ -155,6 +159,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private void ResetMax()
{
_isMax = false;
+ MaxClear = "Max";
_ignoreAmountChanges = true;
Amount = "";
@@ -185,6 +190,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set { this.RaiseAndSetIfChanged(ref _isMax, value); }
}
+ public string MaxClear
+ {
+ get { return _maxClear; }
+ set { this.RaiseAndSetIfChanged(ref _maxClear, value); }
+ }
+
public string Amount
{
get { return _amount; }

Improve Max/Clear toggle