Enter Fuktion
Anmelden etc kann man jetzt mit enter bedienen
This commit is contained in:
parent
eb97a29912
commit
ce490cf68f
@ -101,7 +101,7 @@
|
|||||||
Margin="0,30,0,0"
|
Margin="0,30,0,0"
|
||||||
Background="#FF323134"
|
Background="#FF323134"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
SelectionBrush="#FF6332A0"/>
|
SelectionBrush="#FF6332A0" KeyDown="usernbox_KeyDown"/>
|
||||||
|
|
||||||
<!-- Benutzername TextBox -->
|
<!-- Benutzername TextBox -->
|
||||||
<TextBlock Text="Passwort"
|
<TextBlock Text="Passwort"
|
||||||
|
@ -70,6 +70,13 @@ namespace bib_talk
|
|||||||
register.Show();
|
register.Show();
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
|
private void usernbox_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Key == Key.Enter)
|
||||||
|
{
|
||||||
|
passwordbox.Focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void passwordbox_KeyDown(object sender, KeyEventArgs e)
|
private void passwordbox_KeyDown(object sender, KeyEventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -142,7 +142,7 @@
|
|||||||
Margin="0,30,0,0"
|
Margin="0,30,0,0"
|
||||||
Background="#FF323134"
|
Background="#FF323134"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
SelectionBrush="#FF6332A0"/>
|
SelectionBrush="#FF6332A0" KeyDown="emailbox_KeyDown"/>
|
||||||
|
|
||||||
<!-- Benutzername TextBox -->
|
<!-- Benutzername TextBox -->
|
||||||
<TextBlock Text="Benutzername"
|
<TextBlock Text="Benutzername"
|
||||||
@ -157,7 +157,7 @@
|
|||||||
Margin="0,30,0,0"
|
Margin="0,30,0,0"
|
||||||
Background="#FF323134"
|
Background="#FF323134"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
SelectionBrush="#FF6332A0"/>
|
SelectionBrush="#FF6332A0" KeyDown="usernbox_KeyDown"/>
|
||||||
|
|
||||||
<!-- Passwort PasswordBox -->
|
<!-- Passwort PasswordBox -->
|
||||||
<TextBlock Text="Passwort"
|
<TextBlock Text="Passwort"
|
||||||
@ -172,7 +172,7 @@
|
|||||||
Margin="0,30,0,0"
|
Margin="0,30,0,0"
|
||||||
Background="#FF323134"
|
Background="#FF323134"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
SelectionBrush="#FF6332A0"/>
|
SelectionBrush="#FF6332A0" KeyDown="passwordbox_KeyDown"/>
|
||||||
|
|
||||||
<!-- Geburtsdatum Text -->
|
<!-- Geburtsdatum Text -->
|
||||||
<TextBlock Text="Geburtsdatum"
|
<TextBlock Text="Geburtsdatum"
|
||||||
@ -187,7 +187,7 @@
|
|||||||
BorderBrush="Transparent"
|
BorderBrush="Transparent"
|
||||||
Background="#FF323134"
|
Background="#FF323134"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
SelectionBrush="#FF6332A0"/>
|
SelectionBrush="#FF6332A0" KeyDown="bday1_KeyDown"/>
|
||||||
<TextBox Width="100"
|
<TextBox Width="100"
|
||||||
Height="30"
|
Height="30"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
@ -195,7 +195,7 @@
|
|||||||
BorderBrush="Transparent"
|
BorderBrush="Transparent"
|
||||||
Background="#FF323134"
|
Background="#FF323134"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
SelectionBrush="#FF6332A0"/>
|
SelectionBrush="#FF6332A0" KeyDown="bday2_KeyDown"/>
|
||||||
<TextBox Width="100"
|
<TextBox Width="100"
|
||||||
Height="30"
|
Height="30"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
@ -120,7 +121,44 @@ namespace bib_talk
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
private void emailbox_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Key == Key.Enter)
|
||||||
|
{
|
||||||
|
usernbox.Focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void usernbox_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Key == Key.Enter)
|
||||||
|
{
|
||||||
|
passwordbox.Focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void passwordbox_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Key == Key.Enter)
|
||||||
|
{
|
||||||
|
bday1.Focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void bday1_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Key == Key.Enter)
|
||||||
|
{
|
||||||
|
bday2.Focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
private void bday2_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Key == Key.Enter)
|
||||||
|
{
|
||||||
|
bday3.Focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user