Switch tile layout based on current preset
MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChartTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChartTileView.axaml
BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="Wallet Privacy Status" DockPanel.Dock="Top" />
- <DockPanel LastChildFill="True" TextBlock.FontSize="12">
+ <DockPanel LastChildFill="True" TextBlock.FontSize="12"
+ Classes.smallPreset="{Binding IsSmallPreset}"
+ Classes.normalPreset="{Binding IsNormalPreset}"
+ Classes.widePreset="{Binding IsWidePreset}">
+ <DockPanel.Styles>
+ <Style Selector="DockPanel.smallPreset">
+ <Setter Property="VerticalAlignment" Value="Center"/>
+ </Style>
+ <Style Selector="DockPanel.normalPreset">
+ <Setter Property="VerticalAlignment" Value="Stretch"/>
+ </Style>
+ <Style Selector="DockPanel.widePreset">
+ <Setter Property="VerticalAlignment" Value="Stretch"/>
+ </Style>
+ </DockPanel.Styles>
<ItemsRepeater DockPanel.Dock="Bottom" Margin="0,0,0,-8" Items="{Binding TestDataPointsLegend}">
<ItemsRepeater.ItemTemplate>
<DataTemplate x:DataType="wallets:DataLegend">
</ItemsRepeater.Layout>
</ItemsRepeater>
- <Panel Margin="8" VerticalAlignment="Center" HorizontalAlignment="Center">
+ <Panel Margin="8" VerticalAlignment="Center" HorizontalAlignment="Center"
+ Classes.smallPreset="{Binding IsSmallPreset}"
+ Classes.normalPreset="{Binding IsNormalPreset}"
+ Classes.widePreset="{Binding IsWidePreset}">
+ <Panel.Styles>
+ <Style Selector="Panel.smallPreset">
+ <Setter Property="IsVisible" Value="False"/>
+ </Style>
+ <Style Selector="Panel.normalPreset">
+ <Setter Property="IsVisible" Value="True"/>
+ </Style>
+ <Style Selector="Panel.widePreset">
+ <Setter Property="IsVisible" Value="True"/>
+ </Style>
+ </Panel.Styles>
<controls:RingChartControl DataPoints="{Binding TestDataPoints}" />
</Panel>
</DockPanel>

Switch tile layout based on current preset