Use TemplatedDataGrid
MODIFY
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressesView.axaml
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressesView.axaml
EnableCancel="{Binding EnableCancel}"
EnableBack="{Binding EnableBack}"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
- <DataGrid Items="{Binding Addresses}"
- CanUserSortColumns="True">
- <DataGrid.Styles>
+ <TemplatedDataGrid Items="{Binding Addresses}">
+ <TemplatedDataGrid.Styles>
<Style Selector="c|AnimatedButton.addressActionButton">
<Setter Property="DockPanel.Dock" Value="Right"/>
<Setter Property="Margin" Value="5 0 0 0"/>
<Setter Property="Height" Value="15"/>
<Setter Property="Foreground" Value="{DynamicResource SystemAccentColor}"/>
</Style>
- </DataGrid.Styles>
+ </TemplatedDataGrid.Styles>
- <DataGrid.Columns>
- <DataGridTemplateColumn Header="Labels"
- Width="Auto"
- CanUserSort="True"
- SortMemberPath="Label">
- <DataGridTemplateColumn.CellTemplate>
+ <TemplatedDataGrid.Columns>
+ <TemplatedDataGridColumn Header="Labels"
+ Width="Auto">
+ <TemplatedDataGridColumn.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>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
+ </TemplatedDataGridColumn.CellTemplate>
+ </TemplatedDataGridColumn>
- <DataGridTemplateColumn Header="Address"
- Width="2*"
- CanUserSort="True"
- SortMemberPath="Address">
- <DataGridTemplateColumn.CellTemplate>
+ <TemplatedDataGridColumn Header="Address"
+ Width="2*">
+ <TemplatedDataGridColumn.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>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
+ </TemplatedDataGridColumn.CellTemplate>
+ </TemplatedDataGridColumn>
+ </TemplatedDataGrid.Columns>
+ </TemplatedDataGrid>
</c:ContentArea>
</UserControl>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
</StackPanel>
<!-- List -->
- <DataGrid AutoGenerateColumns="False"
- Items="{Binding Pockets}">
- <DataGrid.Resources>
+ <TemplatedDataGrid Items="{Binding Pockets}">
+ <TemplatedDataGrid.Resources>
<SolidColorBrush x:Key="DataGridRowIndicatorBrush" Color="Transparent" />
<SolidColorBrush x:Key="DataGridRowSelectedBackgroundColor" Color="Transparent" />
<StaticResource x:Key="DataGridRowSelectedUnfocusedBackgroundColor"
ResourceKey="DataGridRowSelectedBackgroundColor" />
- </DataGrid.Resources>
- <DataGrid.Columns>
- <DataGridTemplateColumn CanUserSort="False" CanUserResize="False" CanUserReorder="False">
+ </TemplatedDataGrid.Resources>
+ <TemplatedDataGrid.Columns>
+ <TemplatedDataGridColumn CanUserSort="False" CanUserResize="False" CanUserReorder="False">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate x:DataType="vm:PocketViewModel">
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsSelected}" Focusable="False" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
+ </TemplatedDataGridColumn>
- <DataGridTextColumn x:DataType="vm:PocketViewModel"
- CanUserSort="False"
- Header="Total (BTC)"
- Binding="{Binding TotalBtc}" />
+ <TemplatedDataGridColumn x:DataType="vm:PocketViewModel"
+ Header="Total (BTC)">
+ <DataGridTemplateColumn.CellTemplate>
+ <DataTemplate x:DataType="vm:PocketViewModel">
+ <TextBlock Text="{Binding TotalBtc}" />
+ </DataTemplate>
+ </DataGridTemplateColumn.CellTemplate>
+ </TemplatedDataGridColumn>
- <DataGridTemplateColumn CanUserSort="False" Width="*" Header="Labels">
+ <TemplatedDataGridColumn Width="*" Header="Labels">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate x:DataType="vm:PocketViewModel">
<c:TagsBox Items="{Binding Labels}" IsReadOnly="True" HorizontalAlignment="Left" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
+ </TemplatedDataGridColumn>
+ </TemplatedDataGrid.Columns>
+ </TemplatedDataGrid>
</DockPanel>
</c:ContentArea>
</UserControl>

Use TemplatedDataGrid