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

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -