wabbajack/Wabbajack/Views/ModListGalleryView.xaml

84 lines
3.3 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"
d:DesignWidth="800"
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">
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" />
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" />
2019-11-30 09:08:04 +00:00
<local:TopProgressView
Title="Browsing Modlists"
Grid.Row="0"
Grid.RowSpan="2"
ShadowMargin="False" />
<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>
</rxui:ReactiveUserControl>