private void AppendStringToInput(string str) { TextCanvas.AppendText(str); TextCanvas.CaretIndex += str.Length; SPFlag = true; }