所以,我可以利用你的帮助为这个 watermarkpasswordbox 应用 MaxLength="10"
<watermarkControls:WatermarkPasswordBox
x:Name="passwordLoginTextBox"
WatermarkText="{Binding Path=LocalizedResources.PasswordWatermark,
Source={StaticResource LocalizedStrings}}" />