public ChangePasswordDialog() { InitializeComponent(); OldPasswordBox.Focus(); // If password is default password, set it to oldpasswordbox and disable it if (Session.CurrentUser.IsDefaultPassword()) { OldPasswordBox.Password = Session.DefaultPassword; OldPasswordBox.IsEnabled = false; } }
private void FocusPasswordBox() { OldPasswordBox.Focus(); }
private void SettingUserControl_OnLoaded(object sender, RoutedEventArgs e) { OldPasswordBox.Focus(); }
private void ChangePasswordView_Loaded(object sender, RoutedEventArgs e) { Loaded -= ChangePasswordView_Loaded; this.MakeCloseable(); OldPasswordBox.Focus(); }
private void FakeOldPasswordBox_GotFocus(object sender, RoutedEventArgs e) { OldPasswordBox.Visibility = System.Windows.Visibility.Visible; FakeOldPasswordBox.Visibility = System.Windows.Visibility.Collapsed; OldPasswordBox.Focus(); }