So, I could use your help applying MaxLength="10" for this watermarkpasswordbox
<watermarkControls:WatermarkPasswordBox
x:Name="passwordLoginTextBox"
WatermarkText="{Binding Path=LocalizedResources.PasswordWatermark,
Source={StaticResource LocalizedStrings}}" />
只需在代码隐藏文件中添加以下内容:
passwordLoginTextBox.MaxLength = 10;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.