3 Star 10 Fork 4

Talon/ScriptBox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
About.xaml 4.58 KB
一键复制 编辑 原始数据 按行查看 历史
Talon 提交于 2025-04-09 16:32 +08:00 . feat: 优化关于页面
<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>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/talonshaw/ScriptBox.git
git@gitee.com:talonshaw/ScriptBox.git
talonshaw
ScriptBox
ScriptBox
master

搜索帮助