Beispiel #1
0
        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();
 }
Beispiel #4
0
 private void ChangePasswordView_Loaded(object sender, RoutedEventArgs e)
 {
     Loaded -= ChangePasswordView_Loaded;
     this.MakeCloseable();
     OldPasswordBox.Focus();
 }
Beispiel #5
0
 private void FakeOldPasswordBox_GotFocus(object sender, RoutedEventArgs e)
 {
     OldPasswordBox.Visibility     = System.Windows.Visibility.Visible;
     FakeOldPasswordBox.Visibility = System.Windows.Visibility.Collapsed;
     OldPasswordBox.Focus();
 }