Use ItemsControl instead of ItemsRepeater for legend in WalletPieChart tile
MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartLargeTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartLargeTileView.axaml
<TextBlock Text="Wallet Privacy Status" DockPanel.Dock="Top" />
<DockPanel LastChildFill="True" TextBlock.FontSize="12"
VerticalAlignment="Stretch">
- <ItemsRepeater DockPanel.Dock="Bottom" Margin="0,0,0,-8" Items="{Binding TestDataPointsLegend}">
- <ItemsRepeater.ItemTemplate>
+ <ItemsControl DockPanel.Dock="Bottom" Margin="0,0,0,-8" Items="{Binding TestDataPointsLegend}">
+ <ItemsControl.ItemTemplate>
<DataTemplate x:DataType="wallets:DataLegend">
<Grid ColumnDefinitions="*,*">
<DockPanel Margin="0,8">
</DockPanel>
</Grid>
</DataTemplate>
- </ItemsRepeater.ItemTemplate>
- <ItemsRepeater.Layout>
- <StackLayout />
- </ItemsRepeater.Layout>
- </ItemsRepeater>
+ </ItemsControl.ItemTemplate>
+ <ItemsControl.ItemsPanel>
+ <ItemsPanelTemplate>
+ <StackPanel />
+ </ItemsPanelTemplate>
+ </ItemsControl.ItemsPanel>
+ </ItemsControl>
<Separator DockPanel.Dock="Bottom" Margin="-16 5" HorizontalAlignment="Stretch" />
<controls:PrivacyContentControl PrivacyReplacementMode="Icon">
<Panel Margin="8" VerticalAlignment="Center" HorizontalAlignment="Center">

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartMediumTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartMediumTileView.axaml
<DockPanel LastChildFill="True" IsVisible="{Binding IsAutoCoinJoinEnabled}">
<TextBlock Text="Wallet Privacy Status" DockPanel.Dock="Top" />
<Grid ColumnDefinitions="*,*">
- <ItemsRepeater Grid.ColumnSpan="2" VerticalAlignment="Center" Margin="0,0,0,-4"
+ <ItemsControl Grid.ColumnSpan="2" VerticalAlignment="Center" Margin="0,0,0,-4"
Items="{Binding TestDataPointsLegend}">
- <ItemsRepeater.ItemTemplate>
+ <ItemsControl.ItemTemplate>
<DataTemplate x:DataType="wallets:DataLegend">
<DockPanel Margin="0,0,0,4">
<Ellipse DockPanel.Dock="Left" Margin="0,0,8,0" HorizontalAlignment="Left" Width="10"
Text="{Binding PercentShare, StringFormat=\{0:P1\}}" />
</DockPanel>
</DataTemplate>
- </ItemsRepeater.ItemTemplate>
- <ItemsRepeater.Layout>
- <StackLayout />
- </ItemsRepeater.Layout>
- </ItemsRepeater>
+ </ItemsControl.ItemTemplate>
+ <ItemsControl.ItemsPanel>
+ <ItemsPanelTemplate>
+ <StackPanel />
+ </ItemsPanelTemplate>
+ </ItemsControl.ItemsPanel>
+ </ItemsControl>
<controls:PrivacyContentControl Grid.Column="1" Margin="16,0,0,0" PrivacyReplacementMode="Icon">
<controls:RingChartControl Grid.Column="1"
Margin="16,0,0,0"

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartWideTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartWideTileView.axaml
HorizontalAlignment="Center" DataPoints="{Binding TestDataPoints}" />
</controls:PrivacyContentControl>
- <ItemsRepeater Grid.Column="1" VerticalAlignment="Center" Margin="0,0, 0, -16"
+ <ItemsControl Grid.Column="1" VerticalAlignment="Center" Margin="0,0, 0, -16"
Items="{Binding TestDataPointsLegend}">
- <ItemsRepeater.ItemTemplate>
+ <ItemsControl.ItemTemplate>
<DataTemplate x:DataType="wallets:DataLegend">
<Grid ColumnDefinitions="*,*" RowDefinitions="*,*" HorizontalAlignment="Left"
Margin="0,0,0, 16">
</StackPanel>
</Grid>
</DataTemplate>
- </ItemsRepeater.ItemTemplate>
- <ItemsRepeater.Layout>
- <StackLayout />
- </ItemsRepeater.Layout>
- </ItemsRepeater>
+ </ItemsControl.ItemTemplate>
+ <ItemsControl.ItemsPanel>
+ <ItemsPanelTemplate>
+ <StackPanel />
+ </ItemsPanelTemplate>
+ </ItemsControl.ItemsPanel>
+ </ItemsControl>
</Grid>
</DockPanel>
</Panel>

Use ItemsControl instead of ItemsRepeater for legend in WalletPieChart tile