74 lines
3.8 KiB
XML
74 lines
3.8 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="LANCommander.Packager.Views.MetadataSearchDialog"
|
|
Title="Metadata Lookup"
|
|
Width="650" Height="500"
|
|
WindowStartupLocation="CenterOwner"
|
|
Background="{DynamicResource BackgroundBrush}">
|
|
|
|
<Grid RowDefinitions="Auto,*,Auto" Margin="20">
|
|
<!-- Search controls -->
|
|
<StackPanel Grid.Row="0" Spacing="12" Margin="0,0,0,16">
|
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
|
<ComboBox Name="ProviderCombo" HorizontalAlignment="Stretch" MinWidth="200" />
|
|
<ComboBox Name="SubProviderCombo" Width="180"
|
|
IsVisible="False" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
|
<TextBox Name="SearchField" Watermark="Search for a game..."
|
|
KeyDown="OnSearchKeyDown" MinWidth="400" />
|
|
<Button Name="SearchButton" Content="Search" Classes="Primary"
|
|
Padding="16,6" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<!-- Results -->
|
|
<Border Grid.Row="1" BorderBrush="#2A2A2A" BorderThickness="1" CornerRadius="4">
|
|
<Grid>
|
|
<ListBox Name="ResultsList" Background="Transparent"
|
|
SelectionMode="Single">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid ColumnDefinitions="*,Auto,Auto" Margin="4,6">
|
|
<TextBlock Text="{Binding Title}" FontSize="14"
|
|
Foreground="{DynamicResource TextPrimaryBrush}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding Platforms}"
|
|
Opacity="0.4" FontSize="12"
|
|
VerticalAlignment="Center" Margin="12,0"
|
|
IsVisible="{Binding HasPlatforms}" />
|
|
<TextBlock Grid.Column="2"
|
|
Text="{Binding ReleasedOn}"
|
|
Opacity="0.5" FontSize="12"
|
|
VerticalAlignment="Center"
|
|
IsVisible="{Binding HasReleasedOn}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<TextBlock Name="EmptyLabel" Text="Search for a game to see results"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Opacity="0.4" IsVisible="True" />
|
|
|
|
<StackPanel Name="LoadingPanel" Orientation="Horizontal" Spacing="8"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
IsVisible="False">
|
|
<TextBlock Text="Searching..." Opacity="0.5" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Pagination and actions -->
|
|
<Grid Grid.Row="2" ColumnDefinitions="Auto,*,Auto,Auto" Margin="0,12,0,0">
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="8">
|
|
<Button Name="PrevButton" Content="Previous" IsVisible="False" />
|
|
<Button Name="MoreButton" Content="Load More" IsVisible="False" />
|
|
</StackPanel>
|
|
<Button Name="CancelDialogButton" Content="Cancel" Grid.Column="2" Margin="0,0,8,0" />
|
|
<Button Name="SelectButton" Content="Select" Grid.Column="3" Classes="Primary"
|
|
IsEnabled="False" />
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|