-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAddProgramWindow.xaml
More file actions
32 lines (27 loc) · 1.26 KB
/
AddProgramWindow.xaml
File metadata and controls
32 lines (27 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Window x:Class="WpfApp1.AddProgramWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Add Program" Height="160" Width="380"
WindowStartupLocation="CenterOwner"
Background="#2b2b2b"
ResizeMode="NoResize"
AllowsTransparency="False"
ShowInTaskbar="False">
<Grid Margin="16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="输入要添加的程序名 (如: game.exe 或 game)" Foreground="#E0E0E0" Margin="0,0,0,8"/>
<TextBox x:Name="ExeNameTextBox"
Grid.Row="1"
Background="#3c3f41" Foreground="#FFFFFF"
BorderBrush="#555555" BorderThickness="1"
Padding="8"/>
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,12,0,0">
<Button x:Name="OkButton" Content="确定" Width="90" Height="28" Margin="0,0,8,0"
Background="#3c3f41" Foreground="#FFFFFF" Click="OkButton_Click"/>
</StackPanel>
</Grid>
</Window>