-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
98 lines (85 loc) · 4.69 KB
/
MainWindow.xaml
File metadata and controls
98 lines (85 loc) · 4.69 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<Window x:Class="Content_Management_System.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:Content_Management_System"
mc:Ignorable="d"
Height="500" Width="750"
WindowStyle="SingleBorderWindow"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Icon="Resources/Images/icon.ico"
Title="CMS">
<Grid>
<Grid.Background>
<ImageBrush ImageSource="resources/images/spicesBackground.jpg" Stretch="UniformToFill"/>
</Grid.Background>
<Rectangle x:Name="SpiceFill"
Width="320"
Height="0"
RadiusX="200"
RadiusY="40"
Fill="SandyBrown"
VerticalAlignment="Bottom"
Margin="5"
HorizontalAlignment="Center"
RenderTransformOrigin="0.5,1">
<Rectangle.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="0"/>
<TranslateTransform/>
</TransformGroup>
</Rectangle.RenderTransform>
<Rectangle.Clip>
<RectangleGeometry Rect="0,0,320,400" RadiusX="90" RadiusY="60"/>
</Rectangle.Clip>
</Rectangle>
<Image Source="Resources/Images/jar1.png"
Width="341"
Height="470"
VerticalAlignment="Top"
HorizontalAlignment="Center"/>
<Border Margin="229,149,229,121" BorderBrush="Black" BorderThickness="3">
<Grid Background="White" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0.7*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="0.6*"></RowDefinition>
</Grid.RowDefinitions>
<Label Content="LOGIN" Grid.Row="0" Grid.ColumnSpan="2"
HorizontalAlignment="Center" FontSize="20"
FontFamily="Verdana" FontWeight="Bold"/>
<Label Content="Username: " Grid.Row="1" Grid.Column="0"
VerticalAlignment="Center" HorizontalAlignment="Left"
FontSize="13" FontFamily="Verdana" Margin="10"/>
<TextBox x:Name="name" Grid.Row="1" Grid.Column="1"
FontSize="13" FontFamily="Verdana" VerticalAlignment="Center"
Margin="10" BorderBrush="#CCC" BorderThickness="2"/>
<Label Content="Password: " Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center" HorizontalAlignment="Left"
FontSize="13" FontFamily="Verdana" Margin="10"/>
<PasswordBox x:Name="password" Grid.Row="2" Grid.Column="1"
FontSize="13" FontFamily="Verdana" VerticalAlignment="Center"
Margin="10" BorderBrush="#CCC" BorderThickness="2"/>
<Button x:Name="SubmitBtn" Click="SubmitBtn_Click" Content="Log in" Grid.Row="3" Grid.Column="0"
VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Verdana" FontSize="16"
Background="LightBlue" FontWeight="SemiBold" BorderThickness="1" Cursor="Hand" Height="25" Width="90" Style="{StaticResource SubmitButtonStyle}"/>
<Button x:Name="LeaveBtn" Click="LeaveBtn_Click" Content="Exit" Grid.Row="3" Grid.Column="1"
VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Verdana" FontSize="16"
FontWeight="Normal" Width="80" BorderThickness="1" Cursor="Hand" Height="25" Style="{StaticResource ExitButtonStyle}"/>
<Label x:Name="errorLabel" Grid.Row="4" Grid.ColumnSpan="2"
VerticalAlignment="Center" HorizontalAlignment="Center"
Foreground="Red" FontFamily="Verdana"/>
</Grid>
</Border>
</Grid>
</Window>