PasswordBox Databind or TextBox mask

Hi all

I know we can’t bind Password property of PasswordBox because security reasons

But how can i Mask a databind TextBox , (llike we do with Windows forms textBox) if don’t needed this kind of security



Answer this question

PasswordBox Databind or TextBox mask

  • Jason Sacks - MSFT

    There is no PasswordChar property (like in Winforms TextBox) to mask the textbox and hence no simple way to achieve the above. You probably have to inherit from TextBox and customize it.



  • Vaish

    a possible way would be to listen to the input event and type in the masked character...
  • PasswordBox Databind or TextBox mask