title: How to add event handler to a C# AvalonEdit Caret PositionChanged event in xaml
body: <p>I have a data template defined in xaml as: </p>
  
  <pre><code>&lt;DataTemplate&gt;
  &lt;avalonEdit:TextEditor 
      Name="xmlEditor"
      SyntaxHighlighting="XML"
      FontFamily="Consolas"
      FontSize="10pt"
  /&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>I need to add an ICSharpCode.AvalonEdit.TextEditor.TextArea.Caret.PositionChanged event to this. How can I do that?</p>