This is very easy to do in XAML, as follows:
[XAML]
And you can do something similar in C# as follows:
[C#]
Button btn = new Button();
btn.Content = \\'Test\\';
this.myTextBlock.Inlines.Add(btn);