Tournament management

This commit is contained in:
2026-05-06 13:28:10 +02:00
parent 67d27ab21c
commit c70b9c554e
20 changed files with 1667 additions and 36 deletions
+21 -8
View File
@@ -11,13 +11,24 @@
</Design.DataContext>
<UserControl.Styles>
<Style Selector="Button.dropdown-item">
<Style Selector="ListBoxItem.dropdown-item">
<Setter Property="Padding" Value="8,4"/>
<Setter Property="Cursor" Value="Hand"/>
</Style>
<Style Selector="ListBoxItem.dropdown-item:selected">
<Setter Property="Background" Value="{DynamicResource SystemControlBackgroundListLowBrush}"/>
</Style>
<Style Selector="ListBoxItem.dropdown-item:pointerover">
<Setter Property="Background" Value="{DynamicResource SystemControlBackgroundListLowBrush}"/>
</Style>
<Style Selector="Button.dropdown-action">
<Setter Property="Padding" Value="8,4"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="HorizontalContentAlignment" Value="Left"/>
</Style>
<Style Selector="Button.dropdown-item:pointerover">
<Style Selector="Button.dropdown-action:pointerover">
<Setter Property="Background" Value="{DynamicResource SystemControlBackgroundListLowBrush}"/>
</Style>
</UserControl.Styles>
@@ -66,12 +77,13 @@
<Border Background="{DynamicResource SystemControlBackgroundChromeMediumBrush}" BorderBrush="Gray" BorderThickness="1" CornerRadius="4">
<DockPanel MaxHeight="200">
<TextBox DockPanel.Dock="Top" Text="{Binding EventFilterSearch}" Watermark="Search events..." Margin="4" Padding="6,4"/>
<Button DockPanel.Dock="Bottom" Content="All" Classes="dropdown-item" Foreground="Gray" Margin="4,0,4,4"
<Button DockPanel.Dock="Bottom" Content="All" Classes="dropdown-action" Foreground="Gray" Margin="4,0,4,4"
Click="OnClearEventFilter"/>
<ListBox ItemsSource="{Binding FilteredEvents}" MaxHeight="160">
<ListBox ItemsSource="{Binding FilteredEvents}" MaxHeight="160" SelectionMode="Single"
SelectionChanged="OnEventSelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate x:DataType="x:String">
<Button Content="{Binding}" Classes="dropdown-item" Click="OnEventSelected"/>
<TextBlock Text="{Binding}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
@@ -102,12 +114,13 @@
<Border Background="{DynamicResource SystemControlBackgroundChromeMediumBrush}" BorderBrush="Gray" BorderThickness="1" CornerRadius="4">
<DockPanel MaxHeight="200">
<TextBox DockPanel.Dock="Top" Text="{Binding TournamentFilterSearch}" Watermark="Search tournaments..." Margin="4" Padding="6,4"/>
<Button DockPanel.Dock="Bottom" Content="All" Classes="dropdown-item" Foreground="Gray" Margin="4,0,4,4"
<Button DockPanel.Dock="Bottom" Content="All" Classes="dropdown-action" Foreground="Gray" Margin="4,0,4,4"
Click="OnClearTournamentFilter"/>
<ListBox ItemsSource="{Binding FilteredTournaments}" MaxHeight="160">
<ListBox ItemsSource="{Binding FilteredTournaments}" MaxHeight="160" SelectionMode="Single"
SelectionChanged="OnTournamentSelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate x:DataType="x:String">
<Button Content="{Binding}" Classes="dropdown-item" Click="OnTournamentSelected"/>
<TextBlock Text="{Binding}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>