|
185 | 185 | <TextBlock Text="Sign In" FontSize="30" HorizontalAlignment="Center"/> |
186 | 186 | <TextBlock Text="Specify Your Server URL" TextDecorations="Underline" Margin="0,15,0,5"/> |
187 | 187 | <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> |
188 | | - <TextBox Text="{Binding LoginUser.ServerUrl}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" Width="400" TextChanged="ServerUrlInput_TextChanged"/> |
| 188 | + <TextBox Text="{Binding LoginUser.ServerUrl}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" Width="400" TextChanged="ServerUrlInput_TextChanged" KeyDown="UserLoginTextBox_KeyDown"/> |
189 | 189 | <Path Data="{StaticResource IconCheck}" Fill="Green" Margin="2,1,-25,0"> |
190 | 190 | <Path.Style> |
191 | 191 | <Style TargetType="Path"> |
|
211 | 211 | </Style> |
212 | 212 | </StackPanel.Style> |
213 | 213 | <TextBlock Text="Username or Email" TextDecorations="Underline" Margin="0,15,0,5"/> |
214 | | - <TextBox Text="{Binding LoginUser.Username}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 214 | + <TextBox Text="{Binding LoginUser.Username}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserLoginTextBox_KeyDown"/> |
215 | 215 |
|
216 | 216 | <TextBlock Text="Password" TextDecorations="Underline" Margin="0,15,0,5"/> |
217 | | - <TextBox helper:PasswordBoxAttachedProperties.IsPassword="True" helper:PasswordBoxAttachedProperties.ActualPassword="{Binding LoginUser.Password}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 217 | + <TextBox helper:PasswordBoxAttachedProperties.IsPassword="True" helper:PasswordBoxAttachedProperties.ActualPassword="{Binding LoginUser.Password}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserLoginTextBox_KeyDown"/> |
218 | 218 | </StackPanel> |
219 | 219 | <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,15,0,0"> |
220 | 220 | <Rectangle Fill="{DynamicResource MahApps.Brushes.ThemeForeground}" Width="70" Height="2"/> |
|
244 | 244 | <TextBlock Text="Sign Up" FontSize="30" HorizontalAlignment="Center"/> |
245 | 245 | <TextBlock Text="Specify Your Server URL" TextDecorations="Underline" Margin="0,15,0,5"/> |
246 | 246 | <StackPanel Orientation="Horizontal"> |
247 | | - <TextBox Text="{Binding SignupUser.ServerUrl}" mah:ControlsHelper.CornerRadius="5" Width="400" BorderThickness="2" TextChanged="ServerUrlInput_TextChanged"/> |
| 247 | + <TextBox Text="{Binding SignupUser.ServerUrl}" mah:ControlsHelper.CornerRadius="5" Width="400" BorderThickness="2" TextChanged="ServerUrlInput_TextChanged" KeyDown="UserRegistrationTextBox_KeyDown"/> |
248 | 248 | <Path Data="{StaticResource IconCheck}" Fill="Green" Margin="2,1,-25,0"> |
249 | 249 | <Path.Style> |
250 | 250 | <Style TargetType="Path"> |
|
277 | 277 | </Grid.ColumnDefinitions> |
278 | 278 | <StackPanel Width="195" Grid.Column="0"> |
279 | 279 | <TextBlock Text="Username" TextDecorations="Underline" Margin="0,15,0,5"/> |
280 | | - <TextBox Text="{Binding SignupUser.Username}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 280 | + <TextBox Text="{Binding SignupUser.Username}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserRegistrationTextBox_KeyDown"/> |
281 | 281 | </StackPanel> |
282 | 282 | <StackPanel Width="195" Grid.Column="2"> |
283 | 283 | <StackPanel Orientation="Horizontal" Margin="0,15,0,5"> |
284 | 284 | <TextBlock Text="Birth Date" TextDecorations="Underline"/> |
285 | 285 | <TextBlock Text="(Mandatory)" Visibility="{Binding SignUpServerInfo.IsBirthDateMandatory,Converter={StaticResource boolToVisConv}}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
286 | 286 | </StackPanel> |
287 | | - <DatePicker SelectedDate="{Binding SignupUser.BirthDate}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 287 | + <DatePicker SelectedDate="{Binding SignupUser.BirthDate}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserRegistrationTextBox_KeyDown"/> |
288 | 288 | </StackPanel> |
289 | 289 | </Grid> |
290 | 290 | <StackPanel Orientation="Horizontal" Margin="0,15,0,5"> |
291 | 291 | <TextBlock Text="E-Mail" TextDecorations="Underline"/> |
292 | 292 | <TextBlock Text="(Mandatory)" Visibility="{Binding SignUpServerInfo.IsEMailMandatory,Converter={StaticResource boolToVisConv}}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
293 | 293 | </StackPanel> |
294 | | - <TextBox Text="{Binding SignupUser.EMail}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 294 | + <TextBox Text="{Binding SignupUser.EMail}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserRegistrationTextBox_KeyDown"/> |
295 | 295 | <Grid> |
296 | 296 | <Grid.ColumnDefinitions> |
297 | 297 | <ColumnDefinition Width="Auto"/> |
|
303 | 303 | <TextBlock Text="First Name" TextDecorations="Underline"/> |
304 | 304 | <TextBlock Text="(Mandatory)" Visibility="{Binding SignUpServerInfo.IsFirstNameMandatory,Converter={StaticResource boolToVisConv}}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
305 | 305 | </StackPanel> |
306 | | - <TextBox Text="{Binding SignupUser.FirstName}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 306 | + <TextBox Text="{Binding SignupUser.FirstName}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserRegistrationTextBox_KeyDown"/> |
307 | 307 | </StackPanel> |
308 | 308 | <StackPanel Width="195" Grid.Column="2"> |
309 | 309 | <StackPanel Orientation="Horizontal" Margin="0,15,0,5"> |
310 | 310 | <TextBlock Text="Last Name" TextDecorations="Underline"/> |
311 | 311 | <TextBlock Text="(Mandatory)" Visibility="{Binding SignUpServerInfo.IsLastNameMandatory,Converter={StaticResource boolToVisConv}}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
312 | 312 | </StackPanel> |
313 | | - <TextBox Text="{Binding SignupUser.LastName}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 313 | + <TextBox Text="{Binding SignupUser.LastName}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserRegistrationTextBox_KeyDown"/> |
314 | 314 | </StackPanel> |
315 | 315 | </Grid> |
316 | 316 | <Grid> |
|
321 | 321 | </Grid.ColumnDefinitions> |
322 | 322 | <StackPanel Width="195" Grid.Column="0"> |
323 | 323 | <TextBlock Text="Password" TextDecorations="Underline" Margin="0,15,0,5"/> |
324 | | - <TextBox helper:PasswordBoxAttachedProperties.IsPassword="True" helper:PasswordBoxAttachedProperties.ActualPassword="{Binding SignupUser.Password}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 324 | + <TextBox helper:PasswordBoxAttachedProperties.IsPassword="True" helper:PasswordBoxAttachedProperties.ActualPassword="{Binding SignupUser.Password}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserRegistrationTextBox_KeyDown"/> |
325 | 325 | </StackPanel> |
326 | 326 | <StackPanel Width="195" Grid.Column="2"> |
327 | 327 | <TextBlock Text="Repeat Password" TextDecorations="Underline" Margin="0,15,0,5"/> |
328 | | - <TextBox helper:PasswordBoxAttachedProperties.IsPassword="True" helper:PasswordBoxAttachedProperties.ActualPassword="{Binding SignupUser.RepeatPassword}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2"/> |
| 328 | + <TextBox helper:PasswordBoxAttachedProperties.IsPassword="True" helper:PasswordBoxAttachedProperties.ActualPassword="{Binding SignupUser.RepeatPassword}" mah:ControlsHelper.CornerRadius="5" BorderThickness="2" KeyDown="UserRegistrationTextBox_KeyDown"/> |
329 | 329 | </StackPanel> |
330 | 330 | </Grid> |
331 | 331 | <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,15,0,0"> |
|
0 commit comments