-
Notifications
You must be signed in to change notification settings - Fork 3
/
StartWindow.xaml
103 lines (91 loc) · 3.58 KB
/
StartWindow.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<ui:FluentWindow x:Class="McHMR_Updater_v2.StartWindow"
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:McHMR_Updater_v2"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
mc:Ignorable="d"
Title="StartWindow" MinHeight="150" Height="250" Width="400" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Loaded="FluentWindow_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="2*" />
<RowDefinition Height="7*" />
<RowDefinition Height="2*" />
</Grid.RowDefinitions>
<ui:TitleBar
ShowMaximize="False"
ShowMinimize="False"
Title="" CloseClicked="TitleBar_CloseClicked"
/>
<ui:TextBlock
Grid.Row="0"
Text="设置管理端 API 地址"
FontSize="14"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Margin="10,10,10,10"/>
<StackPanel
Grid.Row="1"
>
<ui:TextBlock
Text="API 地址: "
FontSize="14"
VerticalAlignment="Bottom"
Margin="10,0,10,5"/>
<ui:TextBox
x:Name="apiInput"
VerticalAlignment="Top"
Margin="10,0,10,10"
Cursor="IBeam"
PlaceholderText="请拷贝管理端主页提供的 API 地址"/>
<ui:TextBlock
Text="选择启动器文件: "
FontSize="14"
VerticalAlignment="Bottom"
Margin="10,10,10,5"/>
<StackPanel Orientation="Horizontal">
<ui:TextBox
x:Name="launcherInput"
Margin="10,0,10,10"
Cursor="IBeam"
PlaceholderText="请点击右侧按钮选择启动器文件"
Width="370" VerticalAlignment="Center"/>
<ui:Button
x:Name="selectLauncherBtn"
Width="60"
Height="33"
Icon="Folder16"
VerticalAlignment="Top"
Margin="0,2,0,0"
Click="selectLauncherBtn_Click" >
<ui:SymbolIcon Symbol="Folder16"/>
</ui:Button>
</StackPanel>
</StackPanel>
<ui:TextBlock
Grid.Row="3"
x:Name="resultMsg"
FontSize="14"
VerticalAlignment="Top"
Margin="10,5,10,5"
Foreground="Red"
HorizontalAlignment="Left" />
<ui:Button
Grid.Row="3"
x:Name="verifyBtn"
VerticalAlignment="Top"
Margin="10,5,10,5"
Width="60"
HorizontalAlignment="Right" Click="verifyBtn_Click">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock x:Name="btnText" Text="验证" Height="19" VerticalAlignment="Top" />
<ui:ProgressRing x:Name="btnLoadding" IsIndeterminate="True" Width="18" Height="18" Visibility="Hidden" Margin="5,0,5,0" />
</Grid>
</ui:Button>
</Grid>
</ui:FluentWindow>