It would be nice to have a tool in which you could copy and paste chunks of XAML such as this:
<StackPanel Margin="10">
<TextBlock Text="Title"/>
</StackPanel>
And the tool would output the equivalent code behind such as this:
StackPanel sp = new StackPanel();
sp.Margin = new Thickness(10);
TextBlock tb = new TextBlock();
tb.Text = "Title";
sp.Children.Add(tb);
Does anyone know of a tool that does this?