Add IsVisible logic.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
<controls:SortingArrow Grid.Column="3" Command="{Binding SortCommand}" Text="Transaction ID" SortDirection="{Binding TransactionSortDirection}" />
</Grid>
<Grid>
- <StackPanel ZIndex="2" Orientation="Horizontal" VerticalAlignment="Top">
+ <StackPanel ZIndex="2" Orientation="Horizontal" VerticalAlignment="Top" IsVisible="{Binding IsFirstLoading}">
<controls:Spinner Height="20" Width="20" IsVisible="True" Margin ="8" />
<TextBlock Text="Loading..." VerticalAlignment="Center" />
</StackPanel>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
@@ -22,12 +22,20 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private SortOrder _dateSortDirection;
private SortOrder _amountSortDirection;
private SortOrder _transactionSortDirection;
+ private bool _isFirstLoading;
public ReactiveCommand<Unit, Unit> SortCommand { get; }
+ public bool IsFirstLoading
+ {
+ get => _isFirstLoading;
+ set => this.RaiseAndSetIfChanged(ref _isFirstLoading, value);
+ }
+
public HistoryTabViewModel(WalletViewModel walletViewModel)
: base("History", walletViewModel)
{
+ IsFirstLoading = true;
Transactions = new ObservableCollection<TransactionViewModel>();
this.WhenAnyValue(x => x.SelectedTransaction).Subscribe(async transaction =>
@@ -114,6 +122,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
}
RefreshOrdering();
+ IsFirstLoading = false;
}
catch (Exception ex)
{

Add IsVisible logic.