Display coin history
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
<Setter Property="ToolTip.Tip">
<Setter.Value>
<Template>
- <Grid ColumnDefinitions="150, *" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" MaxWidth="800">
+ <Grid ColumnDefinitions="150, *" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" MaxWidth="800">
<TextBlock Text="Confirmations:" Grid.Row="0" />
<TextBlock Text="{Binding Confirmations}" Grid.Row="0" Grid.Column="1" />
<TextBlock Text="{Binding InCoinJoin}" Grid.Column="1" Grid.Row="8" />
<TextBlock Text="History:" Grid.Row="9" />
- <TextBlock Text="{Binding History}" TextWrapping="Wrap" Grid.Column="1" Grid.Row="9" />
-
- <TextBlock Text="Spent Outputs:" Grid.Row="10" />
- <TextBlock Text="{Binding SpentOutputs}" TextWrapping="Wrap" Grid.Column="1" Grid.Row="10" />
+ <ItemsControl Items="{Binding History}" Grid.Column="1" Grid.Row="9"/>
</Grid>
</Template>
</Setter.Value>
<TextBlock Grid.Column="2" Text="{Binding AmountBtc}" />
<TextBlock Grid.Column="3" Text="{Binding Label}" />
<TextBlock Grid.Column="4" Text="{Binding PrivacyLevel, Converter={StaticResource PrivacyLevelValueConverter}}" Margin="20 0 0 0" />
- <TextBlock Text="{Binding History}" Grid.Column="5" />
+ <TextBlock Text="" Grid.Column="5" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -6,6 +6,7 @@ using ReactiveUI;
using WalletWasabi.Models;
using NBitcoin;
using System.Reactive.Linq;
+using System.Linq;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
@@ -13,12 +14,13 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
private bool _isSelected;
private int _privacyLevel;
- private string _history;
+ private List<string> _history;
public CoinViewModel(SmartCoin model)
{
Model = model;
+ _history = new List<string>();
model.WhenAnyValue(x => x.Confirmed).ObserveOn(RxApp.MainThreadScheduler).Subscribe(confirmed =>
{
this.RaisePropertyChanged(nameof(Confirmed));
@@ -59,10 +61,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public string InCoinJoin => Model.CoinJoinInProcess ? "Yes" : "No";
- public string History
- {
- get { return _history; }
- set { this.RaiseAndSetIfChanged(ref _history, value); }
- }
+ public List<string> History => Model.SpentOutputs.Select(x=>x.ToOutPoint().ToString()).ToList();
}
}

Display coin history