代码拉取完成,页面将自动刷新
<Window x:Class="ScriptBox.About"
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:local="clr-namespace:ScriptBox"
mc:Ignorable="d"
Title="关于 ScriptBox"
Height="300" Width="400"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
Background="Transparent"
AllowsTransparency="True"> <!-- 添加此项以支持透明效果 -->
<!-- 调整阴影容器背景和边距 -->
<Border Margin="10" CornerRadius="10"
Effect="{StaticResource DropShadowEffect}">
<!-- 背景渐变需要放在Border的子元素中 -->
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FFE3F2FD" Offset="0"/>
<GradientStop Color="#FFF5F5F5" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- 标题栏 -->
<Grid Background="#FF2196F3" Height="40"
MouseLeftButtonDown="HeaderGrid_MouseLeftButtonDown"> <!-- 添加鼠标事件 -->
<TextBlock Text="关于 ScriptBox"
Foreground="White" FontSize="16"
VerticalAlignment="Center" Margin="15,0"/>
<Button x:Name="BtnClose" Content=" × "
Style="{StaticResource ModernCloseButton}"
HorizontalAlignment="Right" Margin="0,0,0,0"
Click="BtnClose_Click"/>
</Grid>
<!-- 主要内容 -->
<StackPanel Grid.Row="1" Margin="20">
<!-- 图标和版本信息 -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Image Source="{StaticResource Ta_r20DrawingImage}" Width="48" Height="48" Margin="0,0,15,0"/>
<TextBlock VerticalAlignment="Center" FontSize="18" FontWeight="SemiBold">
<Run Text="v"/>
<Run Text="{Binding SWVersion}"/>
</TextBlock>
</StackPanel>
<!-- 信息区域 -->
<StackPanel Margin="0,20,0,0" TextBlock.FontSize="14">
<TextBlock Text="开发者:Talon Shaw" Foreground="#555"/>
<TextBlock Text="开源协议:GPL v3" Foreground="#555" Margin="0,8,0,0"/>
<!-- 项目链接 -->
<StackPanel Orientation="Horizontal" Margin="0,15,0,0">
<TextBlock Text="项目主页:" Foreground="#555"/>
<TextBlock>
<Hyperlink NavigateUri="https://gitee.com/talonshaw/ScriptBox"
RequestNavigate="Hyperlink_RequestNavigate"
Foreground="#2196F3"
TextDecorations="Underline">
<TextBlock Text="Gitee 仓库"/>
</Hyperlink>
</TextBlock>
</StackPanel>
<!-- 问题反馈 -->
<StackPanel Orientation="Horizontal" Margin="0,8,0,0">
<TextBlock Text="问题反馈:" Foreground="#555"/>
<TextBlock>
<Hyperlink NavigateUri="https://gitee.com/talonshaw/ScriptBox/issues"
RequestNavigate="Hyperlink_RequestNavigate"
Foreground="#2196F3"
TextDecorations="Underline">
<TextBlock Text="提交 Issue"/>
</Hyperlink>
</TextBlock>
</StackPanel>
</StackPanel>
</StackPanel>
<!-- 底部版权信息 -->
<TextBlock Grid.Row="2" Text="© 2024 Talon Studio"
HorizontalAlignment="Center" Margin="0,0,0,10"
Foreground="#888" FontSize="12"/>
</Grid>
</Border>
</Window>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。