title: C# WPF: Display child nodes of selected parent node as a grid
body: <p>I have a xml like this:</p>
  
  <pre><code>&lt;root&gt;
  &lt;project name="p1"&gt;
   &lt;row field1="31" field2="3" Name="Joe"/&gt;
    &lt;row field1="39" field2="3" Name="Joey"/&gt;
    &lt;row field1="37" field2="3" Name="Joei"/&gt;
  &lt;/project&gt;
  &lt;project name="p2"&gt;
   &lt;row field1="31" field2="3" Name="Joe"/&gt;
    &lt;row field1="39" field2="3" Name="Joey"/&gt;
  &lt;/project&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Now the listbox displays the projects. When a project is selected in listbox, a grid has to display the rows. Is it possible to do this in Xaml? Or should i do it in the code as part of listbox's selectionChanged Event?</p>