Password Box example in WPF

December 08, 2015 0 Comments

If you want to design login control then must to set the special character in password box. Today, we will learn, how to design password box in WPF. In WPF, we have a PasswordBox tag in XAML , through this we can add Password box in WPF. I have a simple login control through you can see password control.

The complete code of login control

<Window x:Class="WpfApplication8.password"
        Title="password" Height="300" Width="300">
        <StackPanel Margin="20">
            <Label>Password Box Example</Label>
                <TextBox Width="100"/>
                <PasswordBox PasswordChar="x" MaxLength="8" Width="100"/>

Code Generates the following output:

Jacob Lefore

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard. Google