How do i make a password limited to 6 characters?

Hello everyone, well, im making an app where, i would like to limit the password box to 6 characters, as if the user types just 4 characters, it wouldnt allow them to progress

You want to use a normal TextBox, PasswordBox, or maybe a view like this: