Layout change. Removes WrapPanel, uses UniformGrid
MODIFY
WalletWasabi.Fluent/Views/CoinJoinProfiles/CoinJoinProfilesView.axaml
WalletWasabi.Fluent/Views/CoinJoinProfiles/CoinJoinProfilesView.axaml
<Setter Property="Opacity" Value="1" />
</Style>
- <Style Selector="WrapPanel.narrow">
- <Setter Property="ItemWidth" Value="180"/>
- <Setter Property="ItemHeight" Value="270"/>
- </Style>
-
- <Style Selector="WrapPanel">
- <Setter Property="ItemWidth" Value="210"/>
- <Setter Property="ItemHeight" Value="290"/>
- </Style>
-
</ListBox.Styles>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
- <WrapPanel Orientation="Horizontal" VerticalAlignment="Center">
- <i:Interaction.Behaviors>
- <ir:AdaptiveBehavior>
- <ir:AdaptiveClassSetter MinWidth="0" MaxWidth="600" ClassName="narrow" />
- </ir:AdaptiveBehavior>
- </i:Interaction.Behaviors>
- </WrapPanel>
+ <UniformGrid Rows="1"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.DataTemplates>
<DataTemplate DataType="vm:CoinJoinProfileViewModelBase">
- <c:SuggestionItem>
- <StackPanel Spacing="20">
+ <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}}"

Layout change. Removes WrapPanel, uses UniformGrid