private static Tuple<Window,TextBox> CreateWindowWithTextBox ()
{
var window = new Window();
window.Height = 600;
window.Width = 800;
var scrollViewer = new ScrollViewer();
scrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
window.Content = scrollViewer;
var textBox = new TextBox();
textBox.AcceptsReturn = true;
textBox.AcceptsTab = true;
textBox.Text = "PASTE DATA HERE";
scrollViewer.Content = textBox;
ElementHost.EnableModelessKeyboardInterop (window);
return Tuple.Create(window,textBox);
}
}