So I have a PasswordBox:
<PasswordBox x:Name="pwbPassword" PlaceholderText="Password"
Password="{x:Bind Path=local:Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
However I also have a clear function which contains:
Password = null
The issue I am having is that the PlaceholderText isn't being reinstated and instead the box is left blank.
Is this a bug or am I missing somthing?
I check your code,
Passwordis string property, please bind with string field.Code behind
If you want clear password, please set
PassWordas null.I have tested, the PlaceholderText will be reinstated.