I believe the behavior of TextBox and PasswordBox should be similar in .NET
What I encountered in CSHTML5 is...
When TextBox.MaxLength = 0, it means no limit.
When PasswordBox.MaxLength = 0, it actually means zero (nothing can be inputted).
I almost thought something wrong in my code that disabling PasswordBox and spent a day looking for my bug