title: How to output text to a textbox?
body: <p>I'm making a palindrom WPF program, which test if the word is a palindrome.
  So I want the user to type whatever he wants.</p>
  
  <p>I've seen on stackoverflow someone had a similar problem, and he used </p>
  
  <pre><code>OutputText.Text = (word + Environment.NewLine);
  </code></pre>
  
  <p>But that didn't help me.</p>
  
  <pre><code>private void InputText_TextChanged(object sender, TextChangedEventArgs e)
  {
      while (true)
      {
          string s = Console.ReadLine();
          InputText.Text += s.ToString();
      }
  }
  
  private void OutputText_TextChanged(object sender, TextChangedEventArgs e)
  {
      while (true)
      {
          foreach (var word in InputText.Text.ToString())
          {
              OutputText.Text = word.ToString();
          }
      }
  }
  </code></pre>
  
  <p>I should be able to input the whatever I want and to output the word if it's palindrome. I know I need a method but for now I want exact same input as output.</p>
  
  <p>E.g.</p>
  
  <p>Input: I have radar</p>
  
  <p>Output: I have radar</p>