title: WPF TreeView with right alignment values
body: <p>I have a problem with my wpf treeview. It's code goes like this:</p>
  
  <pre><code>&lt;TreeView ItemsSource="{Binding Path=Items}" Grid.RowSpan="2" Grid.ColumnSpan="2"&gt;
          &lt;TreeView.Resources&gt;
              &lt;HierarchicalDataTemplate DataType="{x:Type m:MyTreeItem}" ItemsSource="{Binding Items}"&gt;
                  &lt;DockPanel LastChildFill="True"&gt;
                      &lt;TextBlock Text="{Binding Path=Value}" DockPanel.Dock="Right"/&gt;
                      &lt;TextBlock Text="{Binding Path=Display}" DockPanel.Dock="Left"/&gt;
                  &lt;/DockPanel&gt;
              &lt;/HierarchicalDataTemplate&gt;
          &lt;/TreeView.Resources&gt;
      &lt;/TreeView&gt;
  </code></pre>
  
  <p>Where MyTreeItem is a simple class with 2 String properties (Display and Value) and a List of MyTreeItem called Items.</p>
  
  <p>I need the tree view to display all 'Values' aligned to the right, while maintaining the tree tabulation of the items 'Display', based on it's deepth.</p>
  
  <p>I have tryed to set the dockPanel to a fixed width, but that didn't work.</p>
  
  <p>I want to do this without any c# code, just xaml.</p>
  
  <p>Thanks in advance.</p>