stinsavo
stinsavo

Reputation: 3

Char Password box as in TextBox

How to set the characters in the textbox as in Password Box or how to make binding Password Box ?

<TextBox Text="{Binding PasswordAdmin, Mode=TwoWay}" Grid.Row="5" Grid.Column="1" Style="{DynamicResource LTB.TextBox}"/>

Upvotes: 0

Views: 101

Answers (1)

Babbillumpa
Babbillumpa

Reputation: 1864

Use the control PasswordBox:

<PasswordBox x:Name="passwordBox" Grid.Row="5" Grid.Column="1" />

Here some 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 about the risk of binding the Password: http://gigi.nullneuron.net/gigilabs/security-risk-in-binding-wpf-passwordbox-password/

Upvotes: 2

Related Questions