public void ResetBoxes()
 {
     LogInputTextBox.Text = "";
     LogPreviewTextBox.ScrollToHome();
     LogPreviewTextBox.Text = "";
     LogInputTextBox.Focus();
 }
        private void KeyClicked(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Return)
            {
                string time = System.DateTime.UtcNow.ToShortTimeString();

                string timeFormatted = String.Format("[{0} UTC] ", time);

                logInputStr = LogInputTextBox.Text;

                string inputStrFinal = timeFormatted + logInputStr;

                if (!string.IsNullOrWhiteSpace(logInputStr))
                {
                    LogPreviewTextBox.Text += inputStrFinal + "\n";
                    LogPreviewTextBox.ScrollToEnd();
                }
                LogInputTextBox.Text = "";
                e.Handled            = true;
            }
        }