use PrivacyTextControl in transaction history
MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
- <Style Selector="TextBlock">
+ <Style Selector="TextBlock, c|PrivacyTextControl">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style Selector="StackPanel">
SortMemberPath="OrderIndex">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
- <TextBlock x:DataType="history:HistoryItemViewModel"
+ <c:PrivacyTextControl x:DataType="history:HistoryItemViewModel"
Text="{Binding Date, StringFormat='{}{0:MM/dd/yyyy HH:mm}'}"
- Classes="monoSpaced"
- Margin="10 0" />
+ TextBlockClasses="monoSpaced"
+ Margin="10 0"
+ NumberOfPrivacyChars="15"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
SortMemberPath="Label">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
- <DockPanel Margin="0,4,0,0" x:DataType="history:HistoryItemViewModel">
+ <DockPanel x:DataType="history:HistoryItemViewModel">
<DockPanel.Styles>
<Style Selector="Button.labelFlyout">
<Setter Property="Margin" Value="0" />
IsVisible="{Binding !!IncomingAmount}"
HorizontalAlignment="Right">
<PathIcon Data="{StaticResource arrow_down_right_regular}" Opacity="0.6" />
- <TextBlock Classes="monoSpaced"
- Text="{Binding IncomingAmount, Converter={x:Static converters:MoneyConverters.ToFormattedString}}" />
+ <c:PrivacyTextControl Text="{Binding IncomingAmount, Converter={x:Static converters:MoneyConverters.ToFormattedString}}"
+ TextBlockClasses="monoSpaced"
+ NumberOfPrivacyChars="9" />
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
IsVisible="{Binding !!OutgoingAmount}"
HorizontalAlignment="Right">
<PathIcon Data="{StaticResource arrow_up_right_regular}" Opacity="0.6" />
- <TextBlock Classes="monoSpaced"
- Text="{Binding OutgoingAmount, Converter={x:Static converters:MoneyConverters.ToFormattedString}}" />
+ <c:PrivacyTextControl Text="{Binding OutgoingAmount, Converter={x:Static converters:MoneyConverters.ToFormattedString}}"
+ TextBlockClasses="monoSpaced"
+ NumberOfPrivacyChars="9" />
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
SortMemberPath="Balance">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
- <TextBlock Classes="monoSpaced"
- HorizontalAlignment="Right"
- x:DataType="history:HistoryItemViewModel"
+ <c:PrivacyTextControl x:DataType="history:HistoryItemViewModel"
Text="{Binding Balance, Converter={x:Static converters:MoneyConverters.ToFormattedString}}"
+ TextBlockClasses="monoSpaced"
+ NumberOfPrivacyChars="9"
+ HorizontalAlignment="Right"
Margin="10 0" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
- <!-- Status -->
+ <!-- Details -->
<DataGridTemplateColumn Width="Auto"
CanUserSort="False">
<DataGridTemplateColumn.CellTemplate>

use PrivacyTextControl in transaction history