Implement ToolTip
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerView.xaml
</TreeView.Styles>
<TreeView.DataTemplates>
<TreeDataTemplate DataType="ViewModels:ClosedWalletViewModel" ItemsSource="{Binding Actions}">
- <StackPanel Classes="TreeViewRoot">
+ <StackPanel Classes="TreeViewRoot" ToolTip.Tip="{Binding TitleTip}">
<i:Interaction.Behaviors>
<behaviors:CommandOnDoubleClickBehavior Command="{Binding OpenWalletCommand}" />
</i:Interaction.Behaviors>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
@@ -41,16 +41,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
try
{
Money balance = Wallet.Coins.TotalAmount();
- var dollars = Wallet.Synchronizer.UsdExchangeRate * balance.ToDecimal(MoneyUnit.BTC);
-
- if (dollars == 0)
- {
Title = $"{WalletName} ({(UiConfig.LurkingWifeMode ? "#########" : balance.ToString(false, true))} BTC)";
- }
- else
- {
- Title = $"{WalletName} ({(UiConfig.LurkingWifeMode ? "#########" : balance.ToString(false, true))} BTC, ${dollars:.00})";
- }
+
+ var dollars = Wallet.Synchronizer.UsdExchangeRate * balance.ToDecimal(MoneyUnit.BTC);
+ TitleTip = dollars > 0 ? $"{dollars:.00} USD" : "??? USD";
}
catch (Exception ex)
{

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModelBase.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModelBase.cs
@@ -13,6 +13,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
private bool _isExpanded;
private string _title;
+ private string _titleTip;
private WalletState _walletState;
private CompositeDisposable _disposables;
private bool _disposedValue;
@@ -23,8 +24,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
_disposables = new CompositeDisposable();
- Wallet = wallet;
Title = WalletName;
+ var isHardware = Wallet.KeyManager.IsHardwareWallet;
+ var isWatch = Wallet.KeyManager.IsWatchOnly;
+ TitleTip = isHardware ? "Hardware Wallet" : isWatch ? "Watch Only Wallet" : "Hot Wallet";
WalletState = wallet.State;
@@ -54,6 +57,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _title, value);
}
+ public string TitleTip
+ {
+ get => _titleTip;
+ set => this.RaiseAndSetIfChanged(ref _titleTip, value);
+ }
+
public string WalletName => Wallet.WalletName;
public int CompareTo([AllowNull] WalletViewModelBase other)

Implement ToolTip