icons purely in axaml
MODIFY
WalletWasabi.Fluent/Views/CoinJoinProfiles/CoinJoinProfileControl.axaml
WalletWasabi.Fluent/Views/CoinJoinProfiles/CoinJoinProfileControl.axaml
ClipToBounds="False"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.CoinJoinProfiles.CoinJoinProfileControl">
- <StackPanel Spacing="20" Width="150" Height="210">
- <TextBlock Text="{Binding Title}" HorizontalAlignment="Center" />
+ <StackPanel Spacing="20" Height="220" MaxWidth="180">
+ <TextBlock Text="{Binding Title}" TextWrapping="Wrap" TextAlignment="Center" />
<Viewbox HorizontalAlignment="Center" Height="70">
<ContentControl Content="{Binding .}">
<ContentControl.DataTemplates>
<DataTemplate DataType="vm:EconomicCoinJoinProfileViewModel">
- <Image Source="/Assets/CoinJoinProfiles/cost.png" />
+ <PathIcon Data="{StaticResource coinjoin_cost}" Foreground="{StaticResource SystemAccentColor}" />
</DataTemplate>
<DataTemplate DataType="vm:SpeedyCoinJoinProfileViewModel">
- <Image Source="/Assets/CoinJoinProfiles/speed.png" />
+ <PathIcon Data="{StaticResource coinjoin_speed}" Foreground="{StaticResource SystemAccentColor}" />
</DataTemplate>
<DataTemplate DataType="vm:PrivateCoinJoinProfileViewModel">
- <Image Source="/Assets/CoinJoinProfiles/private.png" />
+ <PathIcon Data="{StaticResource coinjoin_privacy}" Foreground="{StaticResource SystemAccentColor}" />
</DataTemplate>
<DataTemplate DataType="vm:ManualCoinJoinProfileViewModel">
- <Image Source="/Assets/CoinJoinProfiles/speed.png" />
+ <PathIcon Data="{StaticResource coinjoin_cost}" Foreground="{StaticResource SystemAccentColor}" />
</DataTemplate>
</ContentControl.DataTemplates>
</ContentControl>
</Viewbox>
- <TextBlock Text="{Binding Description}" HorizontalAlignment="Center" TextWrapping="Wrap" />
+ <TextBlock Text="{Binding Description}"
+ TextWrapping="Wrap"
+ HorizontalAlignment="Center" />
</StackPanel>
</UserControl>

MODIFY
WalletWasabi.Fluent/Views/CoinJoinProfiles/CoinJoinProfilesView.axaml
WalletWasabi.Fluent/Views/CoinJoinProfiles/CoinJoinProfilesView.axaml
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.DataTemplates>
- <DataTemplate DataType="vm:CoinJoinProfileViewModelBase">
+ <DataTemplate>
<c:SuggestionItem VerticalAlignment="Center">
- <StackPanel Spacing="20" Height="220" MaxWidth="180">
- <TextBlock Text="{Binding Title}" TextWrapping="Wrap" TextAlignment="Center"/>
- <Viewbox HorizontalAlignment="Center" Height="70">
- <PathIcon Data="{Binding IconName, Converter={x:Static conv:ResolveApplicationResourceConverter.Instance}}"
- Foreground="{StaticResource SystemAccentColor}"/>
- </Viewbox>
- <TextBlock Text="{Binding Description}"
- TextWrapping="Wrap"
- HorizontalAlignment="Center"/>
- </StackPanel>
+ <prof:CoinJoinProfileControl />
</c:SuggestionItem>
</DataTemplate>
</ListBox.DataTemplates>

icons purely in axaml