title: Changing the formatting of clicked text in a textblock
body: <p>I have a textBlock to which I've added some text e.g. as follows: </p>
  
  <pre><code>textBlock1.Inlines.Add(new Run("One "));
  textBlock1.Inlines.Add(new Run("Two "));
  textBlock1.Inlines.Add(new Run("Three "));
  </code></pre>
  
  <p>How can I add a click event that changes the color of the text of the inline that has been clicked? </p>
  
  <p>e.g. if "One" is clicked I'd like it to have a red font; then if "Two" is clicked, I'd like "One" to be black again, and "Two" to be red, so that the color of the last word clicked is red.</p>
  
  <p>I'm fairly new to programming with c# and wpf. </p>
  
  <p>Thanks for your help</p>