3 Star 10 Fork 4

Talon/ScriptBox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SettingsWindow.xaml 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
Talon 提交于 2025-05-20 11:11 +08:00 . feat(设置): 新增设置窗口和热键配置功能
<Window x:Class="ScriptBox.SettingsWindow"
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="设置" Height="200" Width="300" WindowStartupLocation="CenterScreen">
<StackPanel Margin="10">
<CheckBox IsChecked="{Binding AutoHideEnabled}"
Content="启用窗口自动隐藏"
Margin="0 10"/>
<!-- 添加键盘输入区域 -->
<GroupBox Header="激活主界面快捷键" Margin="0 10">
<StackPanel Orientation="Horizontal">
<TextBox x:Name="txtHotkey"
Width="150"
Height="25"
Margin="5"
IsReadOnly="True"
PreviewKeyDown="txtHotkey_PreviewKeyDown" VerticalContentAlignment="Center"/>
<Button Content="清空"
Margin="5 0"
Width="60"
Height="25"
Click="btnClear_Click"/>
</StackPanel>
</GroupBox>
<Button Content="保存"
Click="SaveButton_Click"
Width="80"
Height="25"
HorizontalAlignment="Right"/>
</StackPanel>
</Window>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/talonshaw/ScriptBox.git
git@gitee.com:talonshaw/ScriptBox.git
talonshaw
ScriptBox
ScriptBox
master

搜索帮助