-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
49 lines (47 loc) · 3.67 KB
/
MainPage.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
<Page
x:Class="Ice_Breaking.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Ice_Breaking"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource SystemControlAcrylicWindowBrush}">
<Grid Loaded="Grid_Loaded">
<Button x:Name="add_user" Click="add_user_Click" VerticalAlignment="Top" HorizontalAlignment="Right" FontFamily="segoe mdl2 assets" Content="" FontSize="20" Margin="0,20,20,0" Height="50" Width="50">
<Button.Flyout>
<Flyout>
<StackPanel>
<TextBox x:Name="new_name_box" Header="姓名" Width="200" Margin="0,0,0,20"/>
<TextBox x:Name="new_id_box" Header="学号" Width="200" Margin="0,0,0,20"/>
<DropDownButton x:Name="dropdown_gender" Content="性别" Margin="0,0,0,20">
<DropDownButton.Flyout>
<MenuFlyout Placement="Bottom">
<MenuFlyoutItem x:Name="dropdown_male" Text="男" Click="dropdown_male_Click"/>
<MenuFlyoutItem x:Name="dropdown_female" Text="女" Click="dropdown_female_Click"/>
</MenuFlyout>
</DropDownButton.Flyout>
</DropDownButton>
<TextBox x:Name="new_photo_box" Header="图片地址" Width="200" Margin="0,0,0,20"/>
<StackPanel Orientation="Horizontal">
<Button x:Name="add_save" Click="add_save_Click" Content="保存" Margin="0,0,0,10" Background="{ThemeResource SystemControlAccentAcrylicElementAccentMediumHighBrush}"/>
<TextBlock x:Name="user_existed" Text="该学号已存在!" Margin="20,5,0,0" FontStyle="Italic" Foreground="OrangeRed" Visibility="Collapsed"/>
<TextBlock x:Name="gender_expected" Text="请选择性别!" Margin="20,5,0,0" FontStyle="Italic" Foreground="OrangeRed" Visibility="Collapsed"/>
</StackPanel>
</StackPanel>
</Flyout>
</Button.Flyout>
</Button>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="杭电助手 认脸破冰" FontSize="70" FontFamily="segoe ui variable display" FontWeight="Bold" HorizontalAlignment="Center"/>
<TextBlock Text="by 21321108 HYY" Opacity="0.7" HorizontalAlignment="Center" FontFamily="segoe ui variable display" FontSize="30"/>
<TextBox x:Name="name_box" PlaceholderText="姓名" TextAlignment="Center" Margin="0,30,0,0" FontSize="25"/>
<TextBox x:Name="id_box" PlaceholderText="学号" TextAlignment="Center" Margin="0,10,0,0" FontSize="25"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,10,0,0">
<CheckBox x:Name="anonym" Content="向他人隐藏我的信息"/>
<TextBlock x:Name="invalid_name_or_id" Text="姓名或学号错误!" Margin="20,5,0,0" FontStyle="Italic" Foreground="OrangeRed" Visibility="Collapsed"/>
</StackPanel>
<Button x:Name="start_btn" Click="start_btn_Click" Content="开始" FontSize="30" FontWeight="Bold" HorizontalAlignment="Center" MinWidth="200" Background="{ThemeResource SystemControlAccentAcrylicElementAccentMediumHighBrush}"/>
</StackPanel>
</Grid>
</Page>