make the small pie tile conform to specified design.
MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartSmallTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartSmallTileView.axaml
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletPieChart.WalletPieChartSmallTileView">
<DockPanel>
<TextBlock Text="Wallet Privacy Status" DockPanel.Dock="Top" />
- <DockPanel LastChildFill="True" TextBlock.FontSize="12"
- VerticalAlignment="Center">
- <ItemsRepeater DockPanel.Dock="Bottom" Margin="0,0,0,-8" Items="{Binding TestDataPointsLegend}">
+ <Grid ColumnDefinitions="*,*" TextBlock.FontSize="12">
+ <ItemsRepeater
+ VerticalAlignment="Center"
+ Margin="0,0,0,-8"
+ Items="{Binding TestDataPointsLegend}">
<ItemsRepeater.ItemTemplate>
<DataTemplate x:DataType="wallets:DataLegend">
<DockPanel Margin="0,8">
- <Ellipse DockPanel.Dock="Left" Margin="0,0,8,0" HorizontalAlignment="Left" Width="10"
+ <Ellipse DockPanel.Dock="Left"
+ Margin="0,0,8,0"
+ HorizontalAlignment="Left" Width="10"
Height="10"
Fill="{Binding HexColor, Converter={x:Static converters:ColorStringConverters.HexColorToBrush}}" />
- <TextBlock DockPanel.Dock="Left" HorizontalAlignment="Left"
- Text="{Binding Amount, Converter={x:Static converters:MoneyConverters.MoneyToString}}" />
- <TextBlock DockPanel.Dock="Right" Margin="8,0,0,0" HorizontalAlignment="Right"
+ <TextBlock DockPanel.Dock="Left"
+ HorizontalAlignment="Left"
+ Text="{Binding Label}" />
+ <TextBlock DockPanel.Dock="Left"
+ Margin="8,0,0,0"
+ HorizontalAlignment="Right"
Text="{Binding PercentShare, StringFormat=\{0:P1\}}" />
- <TextBlock DockPanel.Dock="Right" HorizontalAlignment="Right" Text="{Binding Label}" />
</DockPanel>
</DataTemplate>
</ItemsRepeater.ItemTemplate>
<StackLayout />
</ItemsRepeater.Layout>
</ItemsRepeater>
- </DockPanel>
+ <controls:RingChartControl
+ Grid.Column="1"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center"
+ Margin="16 0 0 0 "
+ DataPoints="{Binding TestDataPoints}" />
+ </Grid>
</DockPanel>
</UserControl>
\ No newline at end of file

make the small pie tile conform to specified design.