Proper UserSelector & ProfileSelector Alignment

This commit is contained in:
_Neo_ 2025-12-29 21:02:44 +02:00
parent 3620c76cc1
commit 2b2159f330
2 changed files with 6 additions and 4 deletions

View file

@ -22,20 +22,21 @@
MaxHeight="300"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="-3"
Background="Transparent"
ItemsSource="{Binding Profiles}"
SelectionChanged="ProfilesList_SelectionChanged">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel
HorizontalAlignment="Left"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Orientation="Horizontal" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.Styles>
<Style Selector="ListBoxItem">
<Setter Property="Margin" Value="5,0,0,0" />
<Setter Property="Margin" Value="0,0,0,0" />
<Setter Property="CornerRadius" Value="5" />
</Style>
<Style Selector="Rectangle#SelectionIndicator">

View file

@ -24,20 +24,21 @@
MaxHeight="300"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="-3"
SelectionChanged="ProfilesList_SelectionChanged"
Background="Transparent"
ItemsSource="{Binding Profiles}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel
HorizontalAlignment="Left"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.Styles>
<Style Selector="ListBoxItem">
<Setter Property="Margin" Value="5,0,0,0" />
<Setter Property="Margin" Value="0,0,0,0" />
<Setter Property="CornerRadius" Value="5" />
</Style>
<Style Selector="Rectangle#SelectionIndicator">