Answer the question
In order to leave comments, you need to log in
How to show password in PasswordBox?
In <PasswordBox>
WPF, the characters you enter are displayed as dots, so you can create forms with authorization. However, the element <PasswordBox>
does not contain an argument responsible for displaying the password.
How to show the password in <PasswordBox>
?
<StackPanel Orientation="Horizontal">
<TextBlock Text="Пароль:" Width="90" FontSize="24"></TextBlock>
<WindowsFormsHost Width="250" FontSize="24" Height="35">
<form:TextBox x:Name="Tbx_Password" PasswordChar="●"></form:TextBox>
</WindowsFormsHost>
<ToggleButton x:Name="Btn_HideShow" Height="35" Width="35" Click="Btn_HideShow_Click"></ToggleButton>
</StackPanel>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question