fix avatar template

This commit is contained in:
Lightczx
2023-09-20 09:29:47 +08:00
parent 8b5f017bea
commit 4285abd531

View File

@@ -174,16 +174,18 @@
</StackPanel> </StackPanel>
<StackPanel Grid.Column="1" Visibility="{Binding Avatars, Converter={StaticResource EmptyObjectToBoolConverter}, Mode=OneWay}"> <StackPanel Grid.Column="1" Visibility="{Binding Avatars, Converter={StaticResource EmptyObjectToBoolConverter}, Mode=OneWay}">
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" Text="{shcm:ResourceString Name=ViewSpiralAbyssRecordBattleAvatars}"/> <TextBlock Style="{StaticResource CaptionTextBlockStyle}" Text="{shcm:ResourceString Name=ViewSpiralAbyssRecordBattleAvatars}"/>
<ItemsControl <ScrollViewer VerticalScrollBarVisibility="Hidden">
Margin="0,8,0,0" <ItemsControl
ItemTemplate="{StaticResource AvatarTemplate}" Margin="0,8,0,0"
ItemsSource="{Binding Avatars}"> ItemTemplate="{StaticResource AvatarTemplate}"
<ItemsControl.ItemsPanel> ItemsSource="{Binding Avatars}">
<ItemsPanelTemplate> <ItemsControl.ItemsPanel>
<ItemsWrapGrid MaximumRowsOrColumns="2"/> <ItemsPanelTemplate>
</ItemsPanelTemplate> <ItemsWrapGrid MaximumRowsOrColumns="2"/>
</ItemsControl.ItemsPanel> </ItemsPanelTemplate>
</ItemsControl> </ItemsControl.ItemsPanel>
</ItemsControl>
</ScrollViewer>
</StackPanel> </StackPanel>
<TextBlock <TextBlock
Grid.Row="1" Grid.Row="1"