This is very easy to do in XAML, as follows:
[XAML]
<TextBlock x:Name='myTextBlock' Width='100' Height='40'>
<Button>Test</Button>
</TextBlock>
And you can do something similar in C# as follows:
[C#]
Button btn = new Button();
btn.Content = 'Test';
this.myTextBlock.Inlines.Add(btn);
Share with