|
7 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
8 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | 9 | mc:Ignorable="d" |
10 | | - Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" |
11 | | - > |
| 10 | + Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
12 | 11 |
|
13 | 12 | <Grid> |
14 | | - |
15 | | - <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
16 | | - <StackPanel Orientation="Horizontal" Spacing="10" VerticalAlignment="Center"> |
17 | | - <TextBlock Text="默认保存路径:" VerticalAlignment="Center" FontSize="16"/> |
18 | | - <TextBox x:Name="SavePathTextBox" Width="300" Height="30" |
19 | | - Text=""/> |
20 | | - <Button Content="浏览..." Width="80" Height="30" Click="BrowseFolderButton_Click"/> |
| 13 | + <StackPanel VerticalAlignment="Center" |
| 14 | + HorizontalAlignment="Center"> |
| 15 | + <StackPanel Orientation="Horizontal" |
| 16 | + Spacing="10" |
| 17 | + VerticalAlignment="Center"> |
| 18 | + <TextBlock Text="默认保存路径:" |
| 19 | + VerticalAlignment="Center" |
| 20 | + FontSize="16"/> |
| 21 | + <TextBox x:Name="SavePathTextBox" |
| 22 | + Width="300" |
| 23 | + Height="30" |
| 24 | + Text=""/> |
| 25 | + <Button Content="浏览..." |
| 26 | + Width="80" |
| 27 | + Height="30" |
| 28 | + Click="BrowseFolderButton_Click"/> |
| 29 | + </StackPanel> |
| 30 | + <StackPanel Orientation="Horizontal" |
| 31 | + Spacing="10" |
| 32 | + VerticalAlignment="Center"> |
| 33 | + <TextBlock Text="端口:" |
| 34 | + VerticalAlignment="Center" |
| 35 | + FontSize="16"/> |
| 36 | + <TextBox x:Name="SocketTextBox" |
| 37 | + Width="300" |
| 38 | + Height="30" |
| 39 | + Text=""/> |
| 40 | + <Button Content="保存" |
| 41 | + Width="80" |
| 42 | + Height="30" |
| 43 | + Click="SocketButton_Click"/> |
21 | 44 | </StackPanel> |
22 | | - <StackPanel Orientation="Horizontal" Spacing="10" VerticalAlignment="Center"> |
23 | | - <TextBlock Text="端口:" VerticalAlignment="Center" FontSize="16"/> |
24 | | - <TextBox x:Name="SocketTextBox" Width="300" Height="30" |
25 | | - Text=""/> |
26 | | - <Button Content="保存" Width="80" Height="30" Click="SocketButton_Click"/> |
| 45 | + <StackPanel Orientation="Horizontal" |
| 46 | + Spacing="10" |
| 47 | + VerticalAlignment="Center" |
| 48 | + Margin="0,15,0,0"> |
| 49 | + <TextBlock Text="关闭时最小化到托盘:" |
| 50 | + VerticalAlignment="Center" |
| 51 | + FontSize="16"/> |
| 52 | + <CheckBox x:Name="MinimizeToTrayToggle" |
| 53 | + Checked="MinimizeToTrayToggle_Checked" |
| 54 | + Unchecked="MinimizeToTrayToggle_Unchecked" |
| 55 | + Margin="10,0,0,0"/> |
27 | 56 | </StackPanel> |
28 | | - <StackPanel Orientation="Horizontal" Spacing="15"> |
| 57 | + <StackPanel Orientation="Horizontal" |
| 58 | + Spacing="10" |
| 59 | + VerticalAlignment="Center" |
| 60 | + Margin="0,15,0,0"> |
| 61 | + <TextBlock Text="开机自启(需要以管理员模式启动):" |
| 62 | + VerticalAlignment="Center" |
| 63 | + FontSize="16"/> |
| 64 | + <CheckBox x:Name="cb_start_open" |
| 65 | + Checked="cb_start_open_Checked" |
| 66 | + Unchecked="cb_start_open_Unchecked" |
| 67 | + Margin="10,0,0,0"/> |
| 68 | + </StackPanel> |
| 69 | + <!--<StackPanel Orientation="Horizontal" |
| 70 | + Spacing="10" |
| 71 | + VerticalAlignment="Center" |
| 72 | + Margin="0,15,0,0"> |
| 73 | + <TextBlock Text="开机静默自启:" |
| 74 | + VerticalAlignment="Center" |
| 75 | + FontSize="16"/> |
| 76 | + <CheckBox x:Name="cb_start_open_quiet" |
| 77 | + Checked="cb_start_open_quiet_Checked" |
| 78 | + Unchecked="cb_start_open_quiet_Unchecked" |
| 79 | + Margin="10,0,0,0"/> |
| 80 | + </StackPanel>--> |
| 81 | + |
| 82 | + <StackPanel Orientation="Horizontal" |
| 83 | + Spacing="15"> |
29 | 84 | <!-- GitHub 按钮 --> |
30 | | - <Button Content="GitHub 主页" |
31 | | - Width="200" Height="40" |
32 | | - Background="#24292E" Foreground="White" |
33 | | - FontSize="16" FontWeight="SemiBold" |
34 | | - Click="GitHubButton_Click" |
35 | | - > |
| 85 | + <Button Content="GitHub 主页" |
| 86 | + Width="200" |
| 87 | + Height="40" |
| 88 | + Background="#24292E" |
| 89 | + Foreground="White" |
| 90 | + FontSize="16" |
| 91 | + FontWeight="SemiBold" |
| 92 | + Click="GitHubButton_Click"> |
36 | 93 | <Button.Template> |
37 | 94 | <ControlTemplate TargetType="Button"> |
38 | 95 | <Border Background="{TemplateBinding Background}" |
39 | | - CornerRadius="5"> |
| 96 | + CornerRadius="5"> |
40 | 97 | <ContentPresenter HorizontalAlignment="Center" |
41 | | - VerticalAlignment="Center"/> |
| 98 | + VerticalAlignment="Center"/> |
42 | 99 | </Border> |
43 | 100 | </ControlTemplate> |
44 | 101 | </Button.Template> |
45 | 102 | </Button> |
46 | 103 |
|
47 | 104 | <!-- 哔哩哔哩 按钮 --> |
48 | | - <Button Content="哔哩哔哩 主页" |
49 | | - Width="200" Height="40" |
50 | | - Background="#00A1D6" Foreground="White" |
51 | | - FontSize="16" FontWeight="SemiBold" |
52 | | - Click="BilibiliButton_Click" |
53 | | - > |
| 105 | + <Button Content="哔哩哔哩 主页" |
| 106 | + Width="200" |
| 107 | + Height="40" |
| 108 | + Background="#00A1D6" |
| 109 | + Foreground="White" |
| 110 | + FontSize="16" |
| 111 | + FontWeight="SemiBold" |
| 112 | + Click="BilibiliButton_Click"> |
54 | 113 | <Button.Template> |
55 | 114 | <ControlTemplate TargetType="Button"> |
56 | 115 | <Border Background="{TemplateBinding Background}" |
57 | | - CornerRadius="5"> |
| 116 | + CornerRadius="5"> |
58 | 117 | <ContentPresenter HorizontalAlignment="Center" |
59 | | - VerticalAlignment="Center"/> |
| 118 | + VerticalAlignment="Center"/> |
60 | 119 | </Border> |
61 | 120 | </ControlTemplate> |
62 | 121 | </Button.Template> |
|
0 commit comments