title: TextBox to PasswordBox in WPF
body: <p>I have to convert <code>TextBox</code> XAML to <code>PasswordBox</code> XAML. The main problem is  <code>&lt;TextBox.Text&gt;</code>.</p>
  
  <p>Any clue how it can be done?</p>
  
  <p>Thank you!</p>
  
  <pre><code>&lt;TextBox Grid.Column="1" Grid.Row="1" Height="23" HorizontalAlignment="Left" Name="tbxPassword" VerticalAlignment="Top" Width="277"&gt;
   &lt;TextBox.Text&gt;
       &lt;Binding Path="Password" Source="{StaticResource ods}"  UpdateSourceTrigger="PropertyChanged" &gt;
        &lt;Binding.ValidationRules&gt;
              &lt;c:ConfigValidationRule /&gt;
        &lt;/Binding.ValidationRules&gt;
       &lt;/Binding&gt;
   &lt;/TextBox.Text&gt;
  &lt;/TextBox&gt;
  </code></pre>