wpf - Char Password box as in TextBox -


how set characters in textbox in password box or how make binding password box ?

<textbox text="{binding passwordadmin, mode=twoway}" grid.row="5" grid.column="1" style="{dynamicresource ltb.textbox}"/> 

use control passwordbox:

<passwordbox x:name="passwordbox" grid.row="5" grid.column="1" /> 

here usefull links:

http://www.wpftutorial.net/passwordbox.html

https://msdn.microsoft.com/en-us/library/system.windows.controls.passwordbox(v=vs.100).aspx

a link risk of binding password: http://gigi.nullneuron.net/gigilabs/security-risk-in-binding-wpf-passwordbox-password/


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -