/// <summary> /// Writes text tot he console panel without a line feed. /// Next write continues on the active line /// </summary> /// <param name="text"></param> /// <param name="color"></param> public void Write(string text, Brush color = null) { if (!Model.WindowLayout.IsConsolePanelVisible) { Show(); } Model.WindowLayout.ConsoleText += text; ConsolePanelScroll.ScrollToVerticalOffset(99999999); }
/// <summary> /// Writes text tot he console panel without a line feed. /// Next write continues on the active line /// </summary> /// <param name="text"></param> /// <param name="color"></param> public void Write(string text, Brush color = null) { if (!Model.WindowLayout.IsConsolePanelVisible) { Show(); } var run = new Run() { Text = text }; if (color != null) { run.Foreground = color; } ConsolePanelText.Inlines.Add(run); //Model.WindowLayout.ConsoleText += text; ConsolePanelScroll.ScrollToVerticalOffset(99999999); }