BililiveRecorder/BililiveRecorder.WPF/Pages/AboutPage.xaml

123 lines
6.2 KiB
Plaintext
Raw Normal View History

2021-05-01 00:22:27 +08:00
<ui:Page
x:Class="BililiveRecorder.WPF.Pages.AboutPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:l="https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension"
l:LocalizeDictionary.DesignCulture=""
l:ResxLocalizationProvider.DefaultAssembly="BililiveRecorder.WPF"
l:ResxLocalizationProvider.DefaultDictionary="Strings"
xmlns:m="clr-namespace:BililiveRecorder.WPF.Models"
xmlns:s="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:BililiveRecorder.WPF.Pages"
mc:Ignorable="d"
d:DesignHeight="600" d:DesignWidth="900"
Title="AboutPage">
<Grid Margin="10" d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type=m:AboutModel}">
<Grid.Resources>
<!-- 忽略此处的一个 Error是 Visual Studio 的 bug -->
<!-- Ignore the following Error, caused by Visual Studio bug -->
<ResourceDictionary Source="pack://application:,,,/ModernWpf;component/DensityStyles/Compact.xaml"/>
</Grid.Resources>
<Grid.DataContext>
<m:AboutModel/>
</Grid.DataContext>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<Border HorizontalAlignment="Left" Height="60" Margin="0,5,5,0">
<Image Source="pack://application:,,,/BililiveRecorder.WPF;component/ico.ico"/>
</Border>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<StackPanel.Resources>
<Style x:Key="Pinyin" TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Margin" Value="0,0,0,-6"/>
</Style>
<Style x:Key="MainText" TargetType="TextBlock">
<Setter Property="FontSize" Value="32"/>
</Style>
</StackPanel.Resources>
<StackPanel>
<TextBlock Text="B" Style="{StaticResource Pinyin}"/>
<TextBlock Text="B" Style="{StaticResource MainText}"/>
</StackPanel>
<StackPanel>
<TextBlock Text="zhàn" Style="{StaticResource Pinyin}"/>
<TextBlock Text="站" Style="{StaticResource MainText}"/>
</StackPanel>
<StackPanel>
<TextBlock Text="lù" Style="{StaticResource Pinyin}"/>
<TextBlock Text="录" Style="{StaticResource MainText}"/>
</StackPanel>
<StackPanel>
<TextBlock Text="bō" Style="{StaticResource Pinyin}"/>
<TextBlock Text="播" Style="{StaticResource MainText}"/>
</StackPanel>
<StackPanel>
<TextBlock Text="jī" Style="{StaticResource Pinyin}"/>
<TextBlock Text="姬" Style="{StaticResource MainText}"/>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Grid.Row="1" Margin="0,10">
<TextBlock FontSize="16" Text="{Binding InformationalVersion,StringFormat=版本 {0}}"/>
<TextBlock FontSize="16" Text="版权所有 © 2021 Genteure"/>
<TextBlock FontSize="16" Text="本软件为免费软件。"/>
<TextBlock FontSize="16" Text="本软件为开源软件,使用 GNU通用公共许可证第三版 GPLv3 授权。"/>
<StackPanel Orientation="Horizontal">
<TextBlock FontSize="16" Text="联系方式" VerticalAlignment="Center" Margin="0,0,5,0"/>
<ui:HyperlinkButton Padding="0" Content="rec@danmuji.org" NavigateUri="mailto:rec@danmuji.org"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock FontSize="16" Text="官方网站" VerticalAlignment="Center" Margin="0,0,5,0"/>
<ui:HyperlinkButton Padding="0" Content="https://rec.danmuji.org" NavigateUri="https://rec.danmuji.org"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock FontSize="16" Text="项目首页" VerticalAlignment="Center" Margin="0,0,5,0"/>
<ui:HyperlinkButton Padding="0" Content="https://github.com/Bililive/BililiveRecorder" NavigateUri="https://github.com/Bililive/BililiveRecorder"/>
</StackPanel>
</StackPanel>
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="翻译者" FontSize="22"/>
<ListView Grid.Row="1">
<ListView.Items>
<Label Content="User Name (username)"/>
<Label Content="User Name (username)"/>
<Label Content="User Name (username)"/>
<Label Content="User Name (username)"/>
<Label Content="User Name (username)"/>
<Label Content="User Name (username)"/>
</ListView.Items>
</ListView>
</Grid>
<Grid Grid.Row="3">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="使用的库" FontSize="22"/>
<ListView Grid.Row="1">
<ListView.Items>
<Label Content="TODO"/>
<Label Content="TODO"/>
<Label Content="TODO"/>
<Label Content="TODO"/>
<Label Content="TODO"/>
<Label Content="TODO"/>
</ListView.Items>
</ListView>
</Grid>
</Grid>
</ui:Page>