wabbajack/Wabbajack/Views/ModListGalleryView.xaml

154 lines
5.9 KiB
Plaintext
Raw Normal View History

<rxui:ReactiveUserControl
2019-11-30 09:08:04 +00:00
x:Class="Wabbajack.ModListGalleryView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:local="clr-namespace:Wabbajack"
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
2019-11-30 09:08:04 +00:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:rxui="http://reactiveui.net"
2019-11-30 09:08:04 +00:00
xmlns:system="clr-namespace:System;assembly=mscorlib"
d:DesignHeight="450"
2020-05-07 05:32:36 +00:00
d:DesignWidth="900"
x:TypeArguments="local:ModListGalleryVM"
2019-11-30 09:08:04 +00:00
mc:Ignorable="d">
2019-11-09 13:30:36 +00:00
<Grid>
2019-11-30 09:08:04 +00:00
<Grid.RowDefinitions>
<RowDefinition Height="47" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Rectangle
Grid.Row="1"
Grid.RowSpan="3"
Margin="6,0">
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="#123700B3" />
<GradientStop Offset="1" Color="#00000000" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Border
Grid.Row="1"
BorderBrush="Transparent"
BorderThickness="1,0,1,1">
<ScrollViewer Background="Transparent" VerticalScrollBarVisibility="Auto">
2019-11-09 13:30:36 +00:00
<ItemsControl
x:Name="ModListGalleryControl"
2019-11-30 09:08:04 +00:00
Margin="0,10,0,0"
HorizontalAlignment="Center"
ScrollViewer.VerticalScrollBarVisibility="Visible">
2019-11-09 13:30:36 +00:00
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
2019-11-30 09:08:04 +00:00
<WrapPanel />
2019-11-09 13:30:36 +00:00
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
2019-11-30 09:08:04 +00:00
<DataTemplate>
2020-01-14 04:12:24 +00:00
<local:ModListTileView ViewModel="{Binding}" />
2019-11-30 09:08:04 +00:00
</DataTemplate>
2019-11-09 13:30:36 +00:00
</ItemsControl.ItemTemplate>
2019-11-30 09:08:04 +00:00
</ItemsControl>
</ScrollViewer>
</Border>
<mahapps:ProgressRing
x:Name="LoadingRing"
Grid.Row="1"
Visibility="Collapsed" />
<StackPanel
x:Name="NoneFound"
Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Orientation="Vertical"
Visibility="Collapsed">
<iconPacks:PackIconControl
Width="50"
Height="50"
Margin="0,0,0,10"
HorizontalAlignment="Center"
Foreground="{StaticResource Triadic2Brush}"
Kind="{x:Static iconPacks:PackIconMaterialKind.Cancel}" />
<TextBlock
FontSize="14"
Foreground="{StaticResource ForegroundBrush}"
Text="No Matches" />
</StackPanel>
2020-01-19 04:37:21 +00:00
<iconPacks:PackIconControl
x:Name="ErrorIcon"
Grid.Row="1"
Width="55"
Height="55"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{StaticResource ErrorBrush}"
Kind="{x:Static iconPacks:PackIconMaterialKind.AlertCircle}"
ToolTip="Error loading modlist gallery"
Visibility="Collapsed" />
2019-11-30 09:08:04 +00:00
<local:TopProgressView
Title="Browsing Modlists"
Grid.Row="0"
Grid.RowSpan="2"
ShadowMargin="False" />
<WrapPanel
Grid.Row="0"
Height="25"
Margin="5,5,5,10"
HorizontalAlignment="Right"
Orientation="Horizontal">
2020-05-07 05:32:36 +00:00
<Label
Margin="0,0,0,0"
VerticalAlignment="Center"
Content="Game" />
<ComboBox
Margin="0,0,10,0"
VerticalAlignment="Center"
Foreground="{StaticResource ForegroundBrush}"
ItemsSource="{Binding Path=GameTypeEntries}"
SelectedItem="{Binding GameType, Mode=TwoWay}"
ToolTip="Select a game"
Width="130" />
<TextBlock
Margin="0,0,5,0"
VerticalAlignment="Center"
Foreground="{StaticResource ForegroundBrush}"
Text="Search" />
<TextBox
x:Name="SearchBox"
2020-05-07 05:32:36 +00:00
Width="95"
VerticalContentAlignment="Center" />
2020-04-27 10:18:08 +00:00
<CheckBox
x:Name="ShowNSFW"
2020-05-07 05:32:36 +00:00
Margin="10,0,10,0"
2020-04-27 10:18:08 +00:00
VerticalAlignment="Center"
Content="Show NSFW"
Foreground="{StaticResource ForegroundBrush}"/>
<CheckBox
x:Name="OnlyInstalledCheckbox"
2020-05-07 05:32:36 +00:00
Margin="10,0,10,0"
VerticalAlignment="Center"
Content="Only Installed"
Foreground="{StaticResource ForegroundBrush}" />
<Button
x:Name="ClearFiltersButton"
Margin="0,0,10,0"
Style="{StaticResource IconBareButtonStyle}"
ToolTip="Clear All Filters">
<iconPacks:Material Kind="FilterRemove" />
</Button>
</WrapPanel>
2019-11-30 09:08:04 +00:00
<Button
x:Name="BackButton"
Grid.Row="0"
Width="30"
Height="30"
Margin="7,5,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Style="{StaticResource IconCircleButtonStyle}"
ToolTip="Back to main menu">
<iconPacks:PackIconMaterial Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Kind="ArrowLeft" />
</Button>
2019-11-09 13:30:36 +00:00
</Grid>
2020-05-07 05:32:36 +00:00
</rxui:ReactiveUserControl>