[Flyout]Fix icon center alignment bug (#31142)

This commit is contained in:
Niels Laute
2024-02-07 15:41:51 +01:00
committed by GitHub
parent aae3b34158
commit 3f837f8c90

View File

@@ -5,9 +5,8 @@
xmlns:animatedVisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" xmlns:animatedVisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Flyout"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:tk7controls="using:CommunityToolkit.WinUI.UI.Controls" xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
xmlns:ui="using:CommunityToolkit.WinUI" xmlns:ui="using:CommunityToolkit.WinUI"
xmlns:viewModels="using:Microsoft.PowerToys.Settings.UI.ViewModels" xmlns:viewModels="using:Microsoft.PowerToys.Settings.UI.ViewModels"
mc:Ignorable="d"> mc:Ignorable="d">
@@ -65,13 +64,13 @@
<Grid Grid.Row="1"> <Grid Grid.Row="1">
<ItemsControl <ItemsControl
Margin="12,26,12,24" Margin="12,26,12,24"
HorizontalAlignment="Center" HorizontalAlignment="Stretch"
VerticalAlignment="Top" VerticalAlignment="Top"
ItemsSource="{x:Bind ViewModel.FlyoutMenuItems}" ItemsSource="{x:Bind ViewModel.FlyoutMenuItems}"
TabNavigation="Local"> TabNavigation="Local">
<ItemsControl.ItemsPanel> <ItemsControl.ItemsPanel>
<ItemsPanelTemplate> <ItemsPanelTemplate>
<tk7controls:WrapPanel VerticalSpacing="12" /> <tkcontrols:WrapPanel HorizontalAlignment="Stretch" VerticalSpacing="12" />
</ItemsPanelTemplate> </ItemsPanelTemplate>
</ItemsControl.ItemsPanel> </ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate> <ItemsControl.ItemTemplate>