The syntax of the PasswordBox. : PasswordBox « UI Controls « Silverlight






The syntax of the PasswordBox.

The syntax of the PasswordBox.
   

<UserControl x:Class='SilverlightApplication3.MainPage'
    xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' 
    xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
    xmlns:d='http://schemas.microsoft.com/expression/blend/2008' 
    xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006' 
    mc:Ignorable='d' 
    d:DesignWidth='640' d:DesignHeight='480'>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <TextBlock Text="Password: " FontFamily="Verdana" />
            <PasswordBox x:Name="myPasswordBox" Width="200" Grid.Column="1" />                             
        
            <TextBlock Text="Confirm: " FontFamily="Verdana" Grid.Row="1" />
            <PasswordBox PasswordChar="#" Width="200" Grid.Column="1" Grid.Row="1" />             
        </Grid>
    </Grid>
</UserControl>

   
    
    
  








Related examples in the same category

1.Password for PasswordBoxPassword for PasswordBox
2.PasswordBox with MarginPasswordBox with Margin
3.Display a Password Entry Box and get the inputDisplay a Password Entry Box and get the input
4.Password Box with password changed eventPassword Box with password changed event