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'>
VerticalScrollBarVisibility="Auto">
TextWrapping="Wrap" FontSize="14" Margin="4,4,4,4" BorderThickness="0"/>
Click="AddText_Click"/>
//File: Page.xaml.cs
using System.Windows;
using System.Windows.Controls;
namespace SilverlightApplication3
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void AddText_Click(object sender, RoutedEventArgs e)
{
TextBlock text = new TextBlock();
text.Text = typedText.Text;
text.Margin = new Thickness(2, 2, 2, 2);
spText.Children.Add(text);
}
}
}