Improve coins list
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
</UserControl.Styles>
<DockPanel LastChildFill="True">
- <Grid IsVisible="{Binding ClipboardNotificationVisible}" DockPanel.Dock="Top">
- <Grid Opacity="{Binding ClipboardNotificationOpacity}">
- <Grid.Transitions>
- <Transitions>
- <DoubleTransition Property="Grid.Opacity"
- Easing="CircularEaseIn"
- Duration="0:0:0.5" />
- </Transitions>
- </Grid.Transitions>
- <TextBlock Text="Transaction ID Copied to Clipboard!" Foreground="#22B14C" VerticalAlignment="Center" HorizontalAlignment="Center" />
- </Grid>
- </Grid>
<Grid ColumnDefinitions="30,30,100,100,Auto" Margin="35 0" DockPanel.Dock="Top">
<TextBlock Text="" />
<TextBlock Text="" Grid.Column="1" />
- <TextBlock Text="Amount" Grid.Column="2" />
+ <TextBlock Text="Amount (BTC)" Grid.Column="2" />
<TextBlock Text="Privacy" Grid.Column="3" Margin="20 0 0 0" />
<TextBlock Text="History" Grid.Column="4" />
</Grid>
- <ListBox Items="{Binding Coins}" SelectedItem="{Binding SelectedCoin}">
+ <ListBox Items="{Binding Coins}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
@@ -13,35 +13,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public class CoinListViewModel : ViewModelBase
{
private IReactiveDerivedList<CoinViewModel> _coins;
- private CoinViewModel _selectedCoin;
- private double _clipboardNotificationOpacity;
- private bool _clipboardNotificationVisible;
public CoinListViewModel(IReactiveDerivedList<CoinViewModel> coins)
{
Coins = coins;
-
- this.WhenAnyValue(x => x.SelectedCoin).Subscribe(async coin =>
- {
- if (coin != null)
- {
- await Application.Current.Clipboard.SetTextAsync(coin.TransactionId);
- ClipboardNotificationVisible = true;
- ClipboardNotificationOpacity = 1;
-
- Dispatcher.UIThread.Post(async () =>
- {
- await Task.Delay(1000);
- ClipboardNotificationOpacity = 0;
- });
- }
- });
- }
-
- public CoinViewModel SelectedCoin
- {
- get { return _selectedCoin; }
- set { this.RaiseAndSetIfChanged(ref _selectedCoin, value); }
}
public IReactiveDerivedList<CoinViewModel> Coins
@@ -49,17 +24,5 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
get { return _coins; }
set { this.RaiseAndSetIfChanged(ref _coins, value); }
}
-
- public double ClipboardNotificationOpacity
- {
- get { return _clipboardNotificationOpacity; }
- set { this.RaiseAndSetIfChanged(ref _clipboardNotificationOpacity, value); }
- }
-
- public bool ClipboardNotificationVisible
- {
- get { return _clipboardNotificationVisible; }
- set { this.RaiseAndSetIfChanged(ref _clipboardNotificationVisible, value); }
- }
}
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
<Grid ColumnDefinitions="30, 120, 100, *" Margin="5 0" DockPanel.Dock="Top">
<TextBlock Text="" />
<TextBlock Text="Date" Grid.Column="1" />
- <TextBlock Text="Amount" Grid.Column="2" />
+ <TextBlock Text="Amount (BTC)" Grid.Column="2" />
<TextBlock Text="Labels" Grid.Column="3" Margin="20 0 0 0" />
</Grid>
<ListBox Items="{Binding Transactions}" SelectedItem="{Binding SelectedTransaction, Mode=TwoWay}">

Improve coins list