private void SetUserBoxFocus() { UserBox.Dispatcher.Invoke(new Action(() => { UserBox.Focus(); UserBox.Effect = (DropShadowEffect)MainGrid.Resources["glowEffect"]; SystemBox.Effect = null; })); }
public LoginV() { InitializeComponent(); Messenger.Default.Register <NotificationMessage>(this, ShowHome); if (string.IsNullOrEmpty(UserBox.Text)) { UserBox.Focus(); } }
private void EmptyStuff() { UserBox.Focus(); UserBox.Text = String.Empty; ApiBox.Text = String.Empty; SecretBox.Text = String.Empty; PassBox1.Text = String.Empty; PassBox2.Text = String.Empty; UserBox.Enabled = true; ApiBox.Enabled = false; SecretBox.Enabled = false; PassBox1.Enabled = false; PassBox2.Enabled = false; AddButton.Enabled = false; }
public Login() { InitializeComponent(); UserBox.Focus(); }