WIn_RustTools/RustTools/Views/ModulePage.xaml

94 lines
3.8 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<windowex:WindowEx
x:Class="RustTools.Views.ModulePage"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:windowex="using:WinUIEx"
Title="模组信息"
MinWidth="650"
MinHeight="500"
Closed="WindowEx_Closed"
SizeChanged="WindowEx_SizeChanged"
mc:Ignorable="d">
<Window.SystemBackdrop>
<DesktopAcrylicBackdrop />
</Window.SystemBackdrop>
<Grid x:Name="grid" Padding="16,36,16,10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions />
<StackPanel Grid.Row="0" Orientation="Horizontal">
<Border
Width="106"
Height="106"
CornerRadius="9">
<Border.Background>
<ImageBrush ImageSource="{Binding Mod.IconUrl}" Stretch="UniformToFill" />
</Border.Background>
</Border>
<StackPanel Margin="16,3,9,3" Orientation="Vertical">
<TextBlock Style="{StaticResource TitleLargeTextBlockStyle}" Text="{Binding Mod.Name}" />
<TextBlock
x:Name="title_b"
Margin="0,3,0,0"
Style="{StaticResource BodyTextBlockStyle}"
Text="加载中" />
<TextBlock
x:Name="title_c"
Margin="0,9,0,0"
Style="{StaticResource BodyTextBlockStyle}"
Text="加载中" />
</StackPanel>
</StackPanel>
<ScrollView Grid.Row="1">
<StackPanel Margin="0,26,0,0" Orientation="Vertical">
<TextBlock Style="{StaticResource SubtitleTextBlockStyle}" Text="介绍" />
<TextBlock
x:Name="DescriptionText"
Padding="6,6,6,6"
Style="{StaticResource BodyTextBlockStyle}"
Text="{Binding Mod.Description}"
TextWrapping="Wrap" />
<TextBlock
x:Name="fliptext"
Style="{StaticResource SubtitleTextBlockStyle}"
Text="截图"
Visibility="Collapsed" />
<FlipView
x:Name="flipview"
MaxWidth="600"
MaxHeight="360"
Margin="6,6,6,6"
HorizontalAlignment="Left"
ItemsSource="{x:Bind ScreenshotsList}"
Visibility="Collapsed">
<FlipView.ItemTemplate>
<DataTemplate x:DataType="x:String">
<Image Source="{x:Bind Mode=OneTime}" Stretch="Uniform" />
</DataTemplate>
</FlipView.ItemTemplate>
</FlipView>
</StackPanel>
</ScrollView>
<CommandBar
Grid.Row="3"
VerticalAlignment="Bottom"
Background="Transparent"
DefaultLabelPosition="Right"
IsOpen="False">
<CommandBar.PrimaryCommands>
<AppBarButton Icon="ReportHacked" Label="举报" />
<AppBarSeparator />
<AppBarButton Icon="Like" Label="支持" />
<AppBarSeparator />
<AppBarButton Icon="Download" Label="下载" />
</CommandBar.PrimaryCommands>
</CommandBar>
</Grid>
</windowex:WindowEx>