forked from kamil-matula/CoPoleci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RegisterWindow.xaml
79 lines (78 loc) · 4.81 KB
/
RegisterWindow.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
<Window x:Class="CoPoleci.RegisterWindow"
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="CoPoleci?" Height="600" Width="800" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="Black">
<Window.Resources>
<Style x:Key="LabelStyle" TargetType="Label">
<Setter Property="FontFamily" Value="/Fonts/Ubuntu-Regular.ttf #ubuntu" />
<Setter Property="FontSize" Value="30"/>
</Style>
<Style x:Key="HeadlineStyle" TargetType="Label">
<Setter Property="FontFamily" Value="/Fonts/Ubuntu-Medium.ttf #ubuntu" />
<Setter Property="FontSize" Value="50"/>
</Style>
<Style x:Key="ButtonStyle" TargetType="Button">
<Setter Property="FontFamily" Value="/Graphics/Fonts/Ubuntu-Medium.ttf #ubuntu" />
<Setter Property="FontSize" Value="21"/>
<Setter Property="Foreground" Value="#FFC20505" />
<Setter Property="Background" Value="#FF090606"/>
<Setter Property="Width" Value="160" />
<Setter Property="Height" Value="50" />
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Margin" Value="20" />
</Style>
<Style x:Key="ButtonStyle2" TargetType="Button">
<Setter Property="FontFamily" Value="/Graphics/Fonts/Ubuntu-Medium.ttf #ubuntu" />
<Setter Property="FontSize" Value="21"/>
<Setter Property="Foreground" Value="#FF090606" />
<Setter Property="Background" Value="#FFC20505"/>
<Setter Property="Width" Value="160" />
<Setter Property="Height" Value="50" />
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Margin" Value="20" />
</Style>
</Window.Resources>
<Grid>
<Grid Width="400" HorizontalAlignment="Left">
<Image Source="Graphics/Images/COPOLECI.png" VerticalAlignment="Top" Margin="20">
</Image>
<Label Content="Masz już konto?" Foreground="White" FontSize="18" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
HorizontalAlignment="Center" Margin="132,0,130,125" Height="44" RenderTransformOrigin="0.562,1.163"/>
<Button Style="{StaticResource ButtonStyle2}" Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Bottom"
Margin="70" Content="ZALOGUJ SIĘ" Click="LoginButton_Click"/>
</Grid>
<Grid Width="400" HorizontalAlignment="Right" Background="#FFD0CFCE">
<Grid.RowDefinitions>
<RowDefinition Height="2*" />
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
<RowDefinition Height="2*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<Label Content="Tworzenie konta" Grid.Row="0" HorizontalAlignment="Center" Style="{StaticResource HeadlineStyle}" VerticalAlignment="Center"> </Label>
<Button Grid.Row="5" Content="ZAŁÓŻ KONTO" Style="{StaticResource ButtonStyle}" Click="RegisterButton_Click"/>
<Label Content="Login:" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="20,0,0,10" Style="{StaticResource LabelStyle}"/>
<Label Content="Hasło:" Grid.Row="3" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="20,0,0,10" Style="{StaticResource LabelStyle}"/>
<TextBox x:Name="textBoxLogin" Grid.Row="2" Margin="10 0" FontSize="20" HorizontalAlignment="Left" VerticalAlignment="Top"
Width="250"/>
<PasswordBox x:Name="textBoxPassword" Margin="10 0" FontSize="20" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Top"
Width="250" />
</Grid>
<StackPanel VerticalAlignment="Top">
<Grid Background="Black" Height="10"/>
<Grid Margin="0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 0">
<Button x:Name="ButtonFechar" Width="30" Height="30" Background="{x:Null}" BorderBrush="{x:Null}" Padding="0" Foreground="Gray" Click="PowerButton_Click">
<materialDesign:PackIcon Kind="Power"/>
</Button>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</Window>