]> fbox.kageds.com Git - NEATEST.git/blob - NEA/mainwindow.xaml
2nd commit
[NEATEST.git] / NEA / mainwindow.xaml
1 <Window x:Class="MainWindow"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 xmlns:local="clr-namespace:NEA"
7 mc:Ignorable="d"
8 Title="Log In" Height="297" Width="345" Icon="Home.png" ResizeMode="NoResize">
9 <Window.Resources>
10 <Style x:Key="FocusVisual">
11 <Setter Property="Control.Template">
12 <Setter.Value>
13 <ControlTemplate>
14 <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
15 </ControlTemplate>
16 </Setter.Value>
17 </Setter>
18 </Style>
19 <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
20 <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
21 <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#00BEE6FD"/>
22 <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#003C7FB1"/>
23 <SolidColorBrush x:Key="Button.Pressed.Background" Color="#00C4E5F6"/>
24 <SolidColorBrush x:Key="Button.Pressed.Border" Color="#002C628B"/>
25 <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
26 <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
27 <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
28 <Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
29 <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
30 <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
31 <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
32 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
33 <Setter Property="BorderThickness" Value="1"/>
34 <Setter Property="HorizontalContentAlignment" Value="Center"/>
35 <Setter Property="VerticalContentAlignment" Value="Center"/>
36 <Setter Property="Padding" Value="1"/>
37 <Setter Property="Template">
38 <Setter.Value>
39 <ControlTemplate TargetType="{x:Type Button}">
40 <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
41 <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
42 </Border>
43 <ControlTemplate.Triggers>
44 <Trigger Property="IsDefaulted" Value="true">
45 <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
46 </Trigger>
47 <Trigger Property="IsMouseOver" Value="true">
48 <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
49 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
50 </Trigger>
51 <Trigger Property="IsPressed" Value="true">
52 <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
53 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
54 </Trigger>
55 <Trigger Property="IsEnabled" Value="false">
56 <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
57 <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
58 <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
59 </Trigger>
60 </ControlTemplate.Triggers>
61 </ControlTemplate>
62 </Setter.Value>
63 </Setter>
64 </Style>
65 <SolidColorBrush x:Key="OptionMark.Static.Background" Color="#FFFFFFFF"/>
66 <SolidColorBrush x:Key="OptionMark.Static.Border" Color="#FF707070"/>
67 <Style x:Key="OptionMarkFocusVisual">
68 <Setter Property="Control.Template">
69 <Setter.Value>
70 <ControlTemplate>
71 <Rectangle Margin="14,0,0,0" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
72 </ControlTemplate>
73 </Setter.Value>
74 </Setter>
75 </Style>
76 <SolidColorBrush x:Key="OptionMark.MouseOver.Background" Color="#FFF3F9FF"/>
77 <SolidColorBrush x:Key="OptionMark.MouseOver.Border" Color="White"/>
78 <SolidColorBrush x:Key="OptionMark.MouseOver.Glyph" Color="#FF212121"/>
79 <SolidColorBrush x:Key="OptionMark.Disabled.Background" Color="#FFE6E6E6"/>
80 <SolidColorBrush x:Key="OptionMark.Disabled.Border" Color="#FFBCBCBC"/>
81 <SolidColorBrush x:Key="OptionMark.Disabled.Glyph" Color="#FF707070"/>
82 <SolidColorBrush x:Key="OptionMark.Pressed.Background" Color="#FFD9ECFF"/>
83 <SolidColorBrush x:Key="OptionMark.Pressed.Border" Color="White"/>
84 <SolidColorBrush x:Key="OptionMark.Pressed.Glyph" Color="#FF212121"/>
85 <SolidColorBrush x:Key="OptionMark.Static.Glyph" Color="#FF212121"/>
86 <Style x:Key="CheckBoxStyle1" TargetType="{x:Type CheckBox}">
87 <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
88 <Setter Property="Background" Value="{StaticResource OptionMark.Static.Background}"/>
89 <Setter Property="BorderBrush" Value="{StaticResource OptionMark.Static.Border}"/>
90 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
91 <Setter Property="BorderThickness" Value="1"/>
92 <Setter Property="Template">
93 <Setter.Value>
94 <ControlTemplate TargetType="{x:Type CheckBox}">
95 <Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True">
96 <Grid.ColumnDefinitions>
97 <ColumnDefinition Width="Auto"/>
98 <ColumnDefinition Width="*"/>
99 </Grid.ColumnDefinitions>
100 <Border x:Name="checkBoxBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
101 <Grid x:Name="markGrid">
102 <Path x:Name="optionMark" Data="F1 M 9.97498,1.22334L 4.6983,9.09834L 4.52164,9.09834L 0,5.19331L 1.27664,3.52165L 4.255,6.08833L 8.33331,1.52588e-005L 9.97498,1.22334 Z " Fill="{StaticResource OptionMark.Static.Glyph}" Margin="1" Opacity="0" Stretch="None"/>
103 <Rectangle x:Name="indeterminateMark" Fill="{StaticResource OptionMark.Static.Glyph}" Margin="2" Opacity="0"/>
104 </Grid>
105 </Border>
106 <ContentPresenter x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
107 </Grid>
108 <ControlTemplate.Triggers>
109 <Trigger Property="HasContent" Value="true">
110 <Setter Property="FocusVisualStyle" Value="{StaticResource OptionMarkFocusVisual}"/>
111 <Setter Property="Padding" Value="4,-1,0,0"/>
112 </Trigger>
113 <Trigger Property="IsMouseOver" Value="true">
114 <Setter Property="Background" TargetName="checkBoxBorder" Value="{StaticResource OptionMark.MouseOver.Background}"/>
115 <Setter Property="BorderBrush" TargetName="checkBoxBorder" Value="{StaticResource OptionMark.MouseOver.Border}"/>
116 <Setter Property="Fill" TargetName="optionMark" Value="{StaticResource OptionMark.MouseOver.Glyph}"/>
117 <Setter Property="Fill" TargetName="indeterminateMark" Value="{StaticResource OptionMark.MouseOver.Glyph}"/>
118 </Trigger>
119 <Trigger Property="IsEnabled" Value="false">
120 <Setter Property="Background" TargetName="checkBoxBorder" Value="{StaticResource OptionMark.Disabled.Background}"/>
121 <Setter Property="BorderBrush" TargetName="checkBoxBorder" Value="{StaticResource OptionMark.Disabled.Border}"/>
122 <Setter Property="Fill" TargetName="optionMark" Value="{StaticResource OptionMark.Disabled.Glyph}"/>
123 <Setter Property="Fill" TargetName="indeterminateMark" Value="{StaticResource OptionMark.Disabled.Glyph}"/>
124 </Trigger>
125 <Trigger Property="IsPressed" Value="true">
126 <Setter Property="Background" TargetName="checkBoxBorder" Value="{StaticResource OptionMark.Pressed.Background}"/>
127 <Setter Property="BorderBrush" TargetName="checkBoxBorder" Value="{StaticResource OptionMark.Pressed.Border}"/>
128 <Setter Property="Fill" TargetName="optionMark" Value="{StaticResource OptionMark.Pressed.Glyph}"/>
129 <Setter Property="Fill" TargetName="indeterminateMark" Value="{StaticResource OptionMark.Pressed.Glyph}"/>
130 </Trigger>
131 <Trigger Property="IsChecked" Value="true">
132 <Setter Property="Opacity" TargetName="optionMark" Value="1"/>
133 <Setter Property="Opacity" TargetName="indeterminateMark" Value="0"/>
134 </Trigger>
135 <Trigger Property="IsChecked" Value="{x:Null}">
136 <Setter Property="Opacity" TargetName="optionMark" Value="0"/>
137 <Setter Property="Opacity" TargetName="indeterminateMark" Value="1"/>
138 </Trigger>
139 </ControlTemplate.Triggers>
140 </ControlTemplate>
141 </Setter.Value>
142 </Setter>
143 </Style>
144 </Window.Resources>
145 <Grid Background="#FF403939" Height="268" VerticalAlignment="Top" HorizontalAlignment="Left" Width="340" Margin="0,0,-1,0">
146 <Grid.ColumnDefinitions>
147 <ColumnDefinition Width="73*"/>
148 <ColumnDefinition Width="96*"/>
149 </Grid.ColumnDefinitions>
150
151 <Border BorderBrush="White" BorderThickness="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" Height="27" Margin="9,57,0,0" VerticalAlignment="Top" Width="318" Background="#FF4D4B4B"/>
152
153 <TextBox x:Name="txtUsername" Grid.ColumnSpan="2" Margin="9,57,13,184" BorderBrush="White" Foreground="White">
154 <TextBox.Style>
155 <Style xmlns:sys="clr-namespace:System;assembly=mscorlib" TargetType="{x:Type TextBox}">
156 <Style.Resources>
157 <VisualBrush x:Key="CueBannerBrush" AlignmentX="Left" AlignmentY="Center" Stretch="None">
158 <VisualBrush.Visual>
159 <Label Content="Username" Foreground="White" />
160 </VisualBrush.Visual>
161 </VisualBrush>
162 </Style.Resources>
163 <Style.Triggers>
164 <Trigger Property="IsKeyboardFocused" Value="False">
165 <Setter Property="Background" Value="#FF4D4B4B" />
166 </Trigger>
167 <Trigger Property="Text" Value="{x:Static sys:String.Empty}">
168 <Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
169 </Trigger>
170 <Trigger Property="Text" Value="{x:Null}">
171 <Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
172 </Trigger>
173 <Trigger Property="IsKeyboardFocused" Value="True">
174 <Setter Property="Background" Value="#FF4D4B4B" />
175 </Trigger>
176 </Style.Triggers>
177 </Style>
178 </TextBox.Style>
179 </TextBox>
180 <CheckBox x:Name="chkRememberMe" Content="Remember Me" HorizontalAlignment="Left" Margin="20,137,0,0" VerticalAlignment="Top" Foreground="White" Background="#FF726969" Style="{DynamicResource CheckBoxStyle1}"/>
181 <Border x:Name="bor1" BorderBrush="White" BorderThickness="1" Height="41" Margin="9,175,0,0" CornerRadius="15" Background="#FF499E3C" HorizontalAlignment="Left" Width="317" VerticalAlignment="Top" Grid.ColumnSpan="2">
182 <Button x:Name="btnLogIn" Content="Log In" BorderBrush="#00707070" ClipToBounds="True" Background="#01F4F7FC" Foreground="White" HorizontalAlignment="Left" Width="297.529" Height="41" VerticalAlignment="Top" Margin="9,-1,0,-1" Style="{DynamicResource ButtonStyle1}" />
183 </Border>
184
185 <Button x:Name="btnForgot" Content="Forgotten Password" HorizontalAlignment="Left" Height="25" Margin="40.5,132,0,0" VerticalAlignment="Top" Width="124" Background="#00DDDDDD" Foreground="#FF00C5FF" BorderBrush="#00707070" Style="{DynamicResource ButtonStyle1}" Grid.Column="1"/>
186 <Label Content="Sign In" HorizontalAlignment="Left" Height="35" Margin="9,8,0,0" VerticalAlignment="Top" Width="77" Foreground="White" FontSize="18"/>
187 <Label Content="Don't have an account?" HorizontalAlignment="Left" Height="31" Margin="63,223,0,0" VerticalAlignment="Top" Width="148" Foreground="#FFA09D9D" Grid.ColumnSpan="2"/>
188 <Button x:Name="btnSignUp" Content="Sign Up" HorizontalAlignment="Left" Height="22" Margin="40.5,226,0,0" VerticalAlignment="Top" Width="76" Background="#00DDDDDD" BorderBrush="#00707070" Foreground="#FFC3C0C0" FontWeight="Bold" Style="{DynamicResource ButtonStyle1}" Grid.Column="1"/>
189 <Border BorderBrush="White" BorderThickness="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" Height="27" Margin="9,89,0,0" VerticalAlignment="Top" Width="318" Background="#FF4D4B4B"/>
190 <TextBox x:Name="txtPassword" Grid.ColumnSpan="2" Margin="9,89,13,152" BorderBrush="White" Foreground="White">
191 <TextBox.Style>
192 <Style xmlns:sys="clr-namespace:System;assembly=mscorlib" TargetType="{x:Type TextBox}">
193 <Style.Resources>
194 <VisualBrush x:Key="CueBannerBrush" AlignmentX="Left" AlignmentY="Center" Stretch="None">
195 <VisualBrush.Visual>
196 <Label Content="Password" Foreground="White" />
197 </VisualBrush.Visual>
198 </VisualBrush>
199 </Style.Resources>
200 <Style.Triggers>
201 <Trigger Property="IsKeyboardFocused" Value="False">
202 <Setter Property="Background" Value="#FF4D4B4B" />
203 </Trigger>
204 <Trigger Property="Text" Value="{x:Static sys:String.Empty}">
205 <Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
206 </Trigger>
207 <Trigger Property="Text" Value="{x:Null}">
208 <Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
209 </Trigger>
210 <Trigger Property="IsKeyboardFocused" Value="True">
211 <Setter Property="Background" Value="#FF4D4B4B" />
212 </Trigger>
213
214 </Style.Triggers>
215 </Style>
216 </TextBox.Style>
217 </TextBox>
218
219
220
221 </Grid>
222 </Window>