-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAuthWindow.xaml
More file actions
84 lines (79 loc) · 2.98 KB
/
AuthWindow.xaml
File metadata and controls
84 lines (79 loc) · 2.98 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
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
<Window
x:Class="BF1.ServerAdminTools.AuthWindow"
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"
Name="Window_Auth"
Title="AuthWindow"
Width="640"
Height="360"
Loaded="Window_Auth_Loaded"
ResizeMode="NoResize"
ShowInTaskbar="False"
Topmost="True"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<WindowChrome.WindowChrome>
<WindowChrome
CaptionHeight="0"
GlassFrameThickness="-1"
UseAeroCaptionButtons="False" />
</WindowChrome.WindowChrome>
<Window.Template>
<ControlTemplate TargetType="{x:Type Window}">
<Border BorderBrush="Gray" BorderThickness="1">
<Grid>
<Image
RenderOptions.BitmapScalingMode="HighQuality"
Source="/Assets/Images/splash-bf1-launch.jpg"
Stretch="UniformToFill" />
<ContentPresenter ClipToBounds="True" />
</Grid>
</Border>
</ControlTemplate>
</Window.Template>
<Grid>
<Border
x:Name="border"
Margin="0,70,0,0"
Padding="10,5,10,5"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Background="Black"
Opacity="0.7">
<TextBlock
x:Name="TextBlock_State"
FontFamily="等线"
FontSize="15"
Foreground="White"
Text="欢迎来到《BATTLEFIELD 1》..." />
</Border>
<TextBlock
Margin="{Binding ElementName=border, Path=Margin}"
Padding="{Binding ElementName=border, Path=Padding}"
HorizontalAlignment="{Binding ElementName=border, Path=HorizontalAlignment}"
VerticalAlignment="{Binding ElementName=border, Path=VerticalAlignment}"
FontFamily="{Binding ElementName=TextBlock_State, Path=FontFamily}"
FontSize="{Binding ElementName=TextBlock_State, Path=FontSize}"
FontWeight="{Binding ElementName=TextBlock_State, Path=FontWeight}"
Foreground="{Binding ElementName=TextBlock_State, Path=Foreground}"
Text="{Binding ElementName=TextBlock_State, Path=Text}" />
<TextBlock
x:Name="TextBlock_VersionInfo"
Margin="5"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Foreground="White"
Opacity="0.7"
Text="1.0.0.0" />
<TextBlock
x:Name="TextBlock_BuildDate"
Margin="5"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Foreground="White"
Opacity="0.7"
Text="2022/03/23 17:45" />
</Grid>
</Window>