title: How to print a text next to a line in xaml
body: <p>I have a Line and Textblock in my xaml as follow:</p>
  
  <pre><code> &lt;Line X1="{Binding StartPoint.X}" Y1="{Binding StartPoint.Y}" X2="{Binding EndPoint.X}"
            Y2="{Binding EndPoint.Y}" Stroke="{Binding Color}" StrokeThickness="{Binding Thickness}" /&gt;
   &lt;TextBlock Text="{Binding Title}" /&gt;
  </code></pre>
  
  <p>The TextBlock shows the title of line (for example "Line 1").</p>
  
  <p>The above XAML draw the lines on a canvas and work correctly, but it doesn't show the TextBlock next to line and in parallel to it.</p>
  
  <p>How can I change this XAML code so the text be in the centre of line and parallel to it.</p>