/// <summary> /// Fired when the password box password value changes /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e) { HasTextProperty.SetValue((PasswordBox)sender); }
private void Passwordbox_PasswordChanged(object sender, RoutedEventArgs e) { HasTextProperty.SetValue(sender as PasswordBox, (sender as PasswordBox).SecurePassword.Length > 0); }