private void pbContrasena_PasswordChanged(object sender, RoutedEventArgs e) { PasswordBox pBox = (PasswordBox)(sender); PasswordBoxMVVMAttachedProperties.SetEncryptedPassword(pBox, pBox.SecurePassword); }
private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e) { var pBox = sender as PasswordBox; PasswordBoxMVVMAttachedProperties.SetEncryptedPassword(pBox, pBox.SecurePassword); }