-
Notifications
You must be signed in to change notification settings - Fork 7
/
MainWindow.xaml
44 lines (40 loc) · 4.45 KB
/
MainWindow.xaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Window x:Class="Windows_Update_Delayer.MainWindow"
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:Windows_Update_Delayer"
mc:Ignorable="d"
Title="IT豪哥电脑更新暂停器 v1.0 (2024.5.22)" Height="345" Width="580" ResizeMode="CanMinimize" Icon="images/logo.png">
<Window.Resources>
</Window.Resources>
<Grid>
<Grid.Background>
<ImageBrush ImageSource="images/Win11_desktop.jpg" Opacity="0.2"/>
</Grid.Background>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Rectangle HorizontalAlignment="Center" Height="63" Stroke="Black" VerticalAlignment="Top" Width="580" StrokeThickness="0" Fill="#FF3B8ED0" Margin="0,272,0,0"/>
<Button
Margin="26,114,0,0" Width="100" VerticalAlignment="Top" HorizontalAlignment="Left" Content="2026 年" Height="60" FontSize="20" Background="#FF3B8ED0" Foreground="White" BorderThickness="0,0,0,0" Click="Button_Click_1" Cursor="Hand"/>
<Button Width="100" VerticalAlignment="Top" HorizontalAlignment="Left" Content="2035 年" Height="60" FontSize="20" Background="#FF3B8ED0" Foreground="White" BorderThickness="0,0,0,0" Click="Button_Click_2" Cursor="Hand" Margin="148,114,0,0"/>
<Button
Margin="272,114,0,0" Width="100" VerticalAlignment="Top" HorizontalAlignment="Left" Content="2054 年" Height="60" FontSize="20" Background="#FF3B8ED0" Foreground="White" BorderThickness="0,0,0,0" Click="Button_Click_3" Cursor="Hand"/>
<Rectangle HorizontalAlignment="Center" Height="60" Stroke="Black" VerticalAlignment="Top" Width="580" StrokeThickness="0" Fill="#FF3B8ED0"/>
<TextBlock HorizontalAlignment="Left" Margin="68,9,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="304" Height="70" FontSize="34" Text="电脑更新暂停器" Foreground="White"/>
<TextBlock HorizontalAlignment="Left" Margin="323,27,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="238" Height="30" FontSize="20" Text="for Windows 11/10" Foreground="White"/>
<Image HorizontalAlignment="Left" Height="64" Margin="5,0,0,0" VerticalAlignment="Top" Width="56" Source="images/logo.png"/>
<TextBlock HorizontalAlignment="Left" Margin="410,186,0,0" TextWrapping="Wrap" VerticalAlignment="Top"><Run Text=""/><Hyperlink TextDecorations="None" NavigateUri="https://link3.cc/ithaoge" RequestNavigate="Hyperlink_RequestNavigate"><Run Text="▲ 作者:IT豪哥"/></Hyperlink></TextBlock>
<TextBlock HorizontalAlignment="Left" Margin="410,206,0,0" TextWrapping="Wrap" VerticalAlignment="Top"><Run Text=""/><Hyperlink TextDecorations="None" NavigateUri="https://www.ithaoge.cn/Windows-Update-Delayer.html" RequestNavigate="Hyperlink_RequestNavigate"><Run Text="★ 软件发布与下载页面"/></Hyperlink></TextBlock>
<TextBlock HorizontalAlignment="Left" Margin="410,226,0,0" TextWrapping="Wrap" VerticalAlignment="Top"><Run Text=""/><Hyperlink TextDecorations="None" NavigateUri="https://github.com/IT-HaoGe/Windows-Update-Delayer" RequestNavigate="Hyperlink_RequestNavigate"><Run Text="★ 软件已开源 (GitHub)"/></Hyperlink></TextBlock>
<Label Content="一键暂停 Windows 更新到:" HorizontalAlignment="Left" Margin="23,73,0,0" VerticalAlignment="Top" FontSize="16"/>
<Label Content="Label" HorizontalAlignment="Left" Margin="709,82,0,0" VerticalAlignment="Top"/>
<Button
Margin="26,197,0,0" Width="160" VerticalAlignment="Top" HorizontalAlignment="Left" Content="恢复 Windows 更新" Height="45" FontSize="14" Background="#FF0067C0" Foreground="White" BorderThickness="0,0,0,0" Click="Button_Click_4" Cursor="Hand"/>
<Button
Margin="212,197,0,0" Width="160" VerticalAlignment="Top" HorizontalAlignment="Left" Content="打开系统更新页面" Height="45" FontSize="14" Background="#FFDA6538" Foreground="White" BorderThickness="0,0,0,0" Click="Button_Click_5" Cursor="Hand"/>
<Image HorizontalAlignment="Left" Height="78" Margin="432,94,0,0" VerticalAlignment="Top" Width="86" Source="/images/ithaoge.jpg"/>
<TextBlock HorizontalAlignment="Left" Margin="804,241,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top"/>
</Grid>
</Window>