Use TemplatedDataGridTemplateColumn
MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable2.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable2.axaml
<TemplatedDataGrid.Columns>
<!-- Date -->
- <TemplatedDataGridColumn Header="Date / Time"
+ <TemplatedDataGridTemplateColumn Header="Date / Time"
Width="Auto">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<c:PrivacyContentControl x:DataType="history:HistoryItemViewModel"
Content="{Binding Date, StringFormat='{}{0:MM/dd/yyyy HH:mm}'}"
Margin="10 0"
NumberOfPrivacyChars="15" />
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
<!-- Type -->
- <TemplatedDataGridColumn Header="Type"
+ <TemplatedDataGridTemplateColumn Header="Type"
MinWidth="80"
Width="Auto">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<c:PrivacyContentControl PrivacyReplacementMode="Icon">
<c:PrivacyContentControl.Styles>
</Panel>
</c:PrivacyContentControl>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
<!-- Labels -->
- <TemplatedDataGridColumn Header="Labels"
+ <TemplatedDataGridTemplateColumn Header="Labels"
Width="Auto">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<c:PrivacyContentControl PrivacyReplacementMode="Text" NumberOfPrivacyChars="15" Classes="monoSpacedPrivacyReplacement">
<DockPanel LastChildFill="False" x:DataType="history:HistoryItemViewModel">
</DockPanel>
</c:PrivacyContentControl>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
<!-- Incoming -->
- <TemplatedDataGridColumn Header="Incoming (BTC)"
+ <TemplatedDataGridTemplateColumn Header="Incoming (BTC)"
Width="*"
MinWidth="160"
MaxWidth="210">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Panel Name="Panel" HorizontalAlignment="Stretch">
<StackPanel x:DataType="history:HistoryItemViewModel"
</StackPanel>
</Panel>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
<!-- Outgoing -->
- <TemplatedDataGridColumn Header="Outgoing (BTC)"
+ <TemplatedDataGridTemplateColumn Header="Outgoing (BTC)"
Width="*"
MinWidth="160"
MaxWidth="210">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Panel Name="Panel" HorizontalAlignment="Stretch">
<StackPanel x:DataType="history:HistoryItemViewModel"
</StackPanel>
</Panel>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
<!-- Balance -->
- <TemplatedDataGridColumn Header="Balance (BTC)"
+ <TemplatedDataGridTemplateColumn Header="Balance (BTC)"
Width="Auto">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<c:PrivacyContentControl x:DataType="history:HistoryItemViewModel"
Content="{Binding Balance, Converter={x:Static converters:MoneyConverters.ToFormattedString}}"
HorizontalAlignment="Right"
Margin="10 0" />
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
<!-- Status -->
- <TemplatedDataGridColumn Header="Status"
+ <TemplatedDataGridTemplateColumn Header="Status"
Width="*"
MinWidth="120"
MaxWidth="120">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Panel x:DataType="history:HistoryItemViewModel">
<!-- Confirmed -->
</StackPanel>
</Panel>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
<!-- Details -->
- <TemplatedDataGridColumn Width="Auto">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn Width="Auto">
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button x:DataType="history:HistoryItemViewModel" Classes="plain" ToolTip.Tip="Show Details"
Command="{Binding ShowDetailsCommand}">
<PathIcon Data="{StaticResource details_regular}" Height="15" Opacity="0.6" />
</Button>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
</TemplatedDataGrid.Columns>
</TemplatedDataGrid>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressesView.axaml
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressesView.axaml
</TemplatedDataGrid.Styles>
<TemplatedDataGrid.Columns>
- <TemplatedDataGridColumn Header="Labels"
+ <TemplatedDataGridTemplateColumn Header="Labels"
Width="Auto">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<DockPanel LastChildFill="True" Margin="10 0" x:DataType="receive:AddressViewModel">
<Button Classes="plain addressActionButton" ToolTip.Tip="Edit" DockPanel.Dock="Right" Command="{Binding EditLabelCommand}">
</c:PrivacyContentControl>
</DockPanel>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
- <TemplatedDataGridColumn Header="Address"
+ <TemplatedDataGridTemplateColumn Header="Address"
Width="2*">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate>
<DockPanel LastChildFill="True" Margin="10 0" x:DataType="receive:AddressViewModel">
<Button Classes="plain addressActionButton" Command="{Binding HideAddressCommand}"
<c:PrivacyContentControl Content="{Binding Address}" VerticalAlignment="Center" NumberOfPrivacyChars="38" />
</DockPanel>
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
</TemplatedDataGrid.Columns>
</TemplatedDataGrid>
</c:ContentArea>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
ResourceKey="DataGridRowSelectedBackgroundColor" />
</TemplatedDataGrid.Resources>
<TemplatedDataGrid.Columns>
- <TemplatedDataGridColumn>
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate x:DataType="vm:PocketViewModel">
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsSelected}" Focusable="False" />
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
- <TemplatedDataGridColumn x:DataType="vm:PocketViewModel"
+ <TemplatedDataGridTemplateColumn x:DataType="vm:PocketViewModel"
Header="Total (BTC)">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate x:DataType="vm:PocketViewModel">
<TextBlock Text="{Binding TotalBtc}" />
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
- <TemplatedDataGridColumn Width="*" Header="Labels">
- <TemplatedDataGridColumn.CellTemplate>
+ <TemplatedDataGridTemplateColumn Width="*" Header="Labels">
+ <TemplatedDataGridTemplateColumn.CellTemplate>
<DataTemplate x:DataType="vm:PocketViewModel">
<c:TagsBox Items="{Binding Labels}" IsReadOnly="True" HorizontalAlignment="Left" />
</DataTemplate>
- </TemplatedDataGridColumn.CellTemplate>
- </TemplatedDataGridColumn>
+ </TemplatedDataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridTemplateColumn>
</TemplatedDataGrid.Columns>
</TemplatedDataGrid>
</DockPanel>

Use TemplatedDataGridTemplateColumn