forked from RusFeniks/MinecraftUpdater-ClientSide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
61 lines (56 loc) · 4.03 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<Window x:Name="GeneralWindow" x:Class="MinecraftUpdater.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:MinecraftUpdater"
mc:Ignorable="d"
Title="Lost Lands - Сервер minecraft на краю света" Height="480" Width="854" ResizeMode="CanMinimize" Icon="icon.ico">
<Window.Background>
<ImageBrush ImageSource="bg.png" Stretch="UniformToFill"/>
</Window.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
<RowDefinition Height="15"/>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Rectangle Fill="#25000000" Grid.Row="0" Grid.Column="0"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<Image Source="logo.png" Height="40" HorizontalAlignment="Left" Margin="10 0"/>
<Button x:Name="NewsPageButton" Content="НОВОСТИ" Padding="10 0" Height="40" Grid.Column="2" Background="#f8f9fa" FontSize="14" FontWeight="DemiBold" Margin="0 5 10 5" Click="NewsPageButton_Click"/>
<Button x:Name="AddonsPageButton" Content="АДДОНЫ" Padding="10 0" Height="40" Grid.Column="3" Background="#f8f9fa" FontSize="14" FontWeight="DemiBold" Margin="0 5 10 5" Click="AddonsPageButton_Click"/>
<Button x:Name="SettingsPageButton" Content="НАСТРОЙКИ" Padding="10 0" Height="40" Grid.Column="4" Background="#f8f9fa" FontSize="14" FontWeight="DemiBold" Margin="0 5 10 5" Click="SettingsPageButton_Click"/>
</Grid>
<Frame x:Name="ContentFrame" Grid.Row="1" Background="#33FFFFFF" NavigationUIVisibility="Hidden" Padding="5 3"/>
<ProgressBar x:Name="UpdateProgressBar" Grid.Row="2" Background="#19000000" Foreground="#FFFFC107"/>
<Rectangle Fill="#25000000" Grid.Row="3" Grid.Column="0"/>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<Label Content="Логин" Grid.Column="0" Margin="5 0" Foreground="#fafafa"/>
<TextBox x:Name="LoginTextBox" Height="35" Grid.Column="0" Margin="10 0 0 0" FontSize="18" VerticalContentAlignment="Center" Text="" TextChanged="LoginTextBox_TextChanged"/>
<Label Content="Пароль" Grid.Column="1" Margin="5 0" Foreground="#fafafa"/>
<Label x:Name="PasswordHelpLink" Content="(?)" Width="25" Height="25" Grid.Column="1" Margin="48 0" Foreground="#fafafa" Cursor="Hand" MouseDown="PasswordHelpLink_MouseDown" VerticalAlignment="Top" HorizontalAlignment="Left"/>
<PasswordBox x:Name="PasswordTextBox" Height="35" Grid.Column="1" Margin="10 0 0 0" FontSize="18" VerticalContentAlignment="Center" Password="" PasswordChanged="PasswordTextBox_PasswordChanged"/>
<Button x:Name="UpdateButton" Content="ОБНОВИТЬ" Padding="40 0" Height="50" Grid.Column="3" Background="#f8f9fa" FontSize="18" FontWeight="DemiBold" Margin="0 0 10 0" IsEnabled="False" Click="UpdateButton_Click"/>
<Button x:Name="PlayButton" Content="ИГРАТЬ" Width="150" Height="50" Grid.Column="4" Background="#ffc107" FontSize="24" FontWeight="Bold" Margin="0 0 10 0" IsEnabled="False" Click="PlayButton_Click"/>
</Grid>
</Grid>
</Window>