issue #3851 add PasswordBox support, using code to add