Some fixes

Alignment, sizing, and selection indicator
This commit is contained in:
_Neo_
2026-01-05 17:30:16 +02:00
parent af59454e19
commit 925ae1652b
4 changed files with 30 additions and 39 deletions

View File

@@ -17,21 +17,16 @@
<viewModels:ProfileSelectorDialogViewModel />
</Design.DataContext>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowDefinitions="*,Auto">
<StackPanel>
<Border BorderThickness="0" Padding="-3">
<ListBox
MaxHeight="300"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="-3"
Background="Transparent"
ItemsSource="{Binding Profiles}"
SelectionChanged="ProfilesList_SelectionChanged">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel
HorizontalAlignment="Center"
VerticalAlignment="Center"
Orientation="Horizontal" />
<UniformGrid Columns="5" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.Styles>
@@ -82,6 +77,6 @@
</DataTemplate>
</ListBox.DataTemplates>
</ListBox>
</StackPanel>
</Border>
</Grid>
</UserControl>