title: WPF Binding parent property in HierarchicalDataTemplate
body: <p>I have a WPF <code>TreeView</code> with 2 levels of data and 2 <code>HierarchicalDataTemplate</code> to format each level. From the <code>HierarchicalDataTemplate</code> at the second level, I need to bind a property in the class of the first level. I have tried in this way, but it dosn't work:</p>
  
  <pre><code>Text="{Binding Path=Ori, RelativeSource={RelativeSource TemplatedParent}}"
  </code></pre>
  
  <p>with <code>Ori</code> as the name of the propery</p>
  
  <p>Even in this way it dosn't works:</p>
  
  <pre><code>Text="{Binding Path=tOri, RelativeSource={RelativeSource TemplatedParent}}"
  </code></pre>
  
  <p>with <code>tOri</code> as the name of the <code>TextBlock</code> in the fisrt <code>HierarchicalDataTemplate</code> that bind the <code>Ori</code> propery.</p>
  
  <p>Can you help me?</p>