/// <summary> /// Clears the output window of all text /// </summary> public void ClearOutputWindow() { OutputTextWindow.Text = " "; OutputScrollWindow.UpdateLayout(); OutputScrollWindow.ScrollToVerticalOffset(double.MaxValue); }
/// <summary> /// Adds a line of text to the output window. This must be called from /// the main thread. /// </summary> /// <param name="instrText"></param> public void WriteLineToOutput(string instrText) { OutputTextWindow.Text += instrText + "\n"; OutputScrollWindow.UpdateLayout(); OutputScrollWindow.ScrollToVerticalOffset(double.MaxValue); }