Creating Your First Silverlight 2 App: Listing 1. Defining Silverlight 2 controls in XAML.
<UserControl x:Class="FirstSilverlight2Application.Page"
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White"
VerticalAlignment="Top">
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="tbName" Text="Name" Margin="5"
Height="20" />
<TextBox x:Name="txtName" Width="100" Height="20" />
<Button x:Name="btnSubmit" Content="Submit" Height="20"
Margin="10" />
</StackPanel>
</Grid>
</UserControl>