<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

      HorizontalAlignment="Center" VerticalAlignment="Center">

<!-- Example 5-8. TextBox and PasswordBox -->

<StackPanel Orientation="Horizontal">

  <TextBox Margin="5" VerticalAlignment="Center" Text="Single line textbox" />

  <TextBox AcceptsReturn="True" Margin="5" Height="50"
           VerticalScrollBarVisibility="Visible"
           VerticalAlignment="Center" Text="Multiline textbox" />

  <PasswordBox Margin="5" VerticalAlignment="Center" Password="Un5ecure" />

</StackPanel>

<!-- End of Example 5-8. -->

</Page>