title: How to bind nested objects, or master-detail-binding, in code?
body: <p>I have a three nested classes, Show, Season and Episode, where a show has seasons, and seasons has episodes. </p>
  
  <p>I want to bind two listboxes so that the first lists seasons, and the second lists episodes in that season.</p>
  
  <p>How can I do this? I prefer to set this up in code, not xaml, but if you know how to do it with xaml, it's better than nothing..</p>
  
  <p>A simplifyed xaml:</p>
  
  <pre><code>&lt;Window&gt;
    &lt;Label name="Showname" /&gt;
    &lt;ListBox name="Seasons" /&gt;
    &lt;ListBox name="Episodes" /&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>and some relevant code:</p>
  
  <pre><code>public partial class Window1 : Window
  {
    public Data.Show show { get; set; }
    public Window1()
    {
      this.DataContex = show;
  
      //Bind shows name to label
      Binding bindName = new Binding("Name");
      ShowName.SetBinding(Label.ContentProperty, bindName);
  
      //Bind shows seasons to first listbox
      Binding bindSeasons = new Binding("Seasons");
      Seasons.SetBinding(ListBox.ItemsSourceProperty, bindSeasons);
      Seasons.DisplayMemberPath = "SeasonNumber";
      Seasons.IsSyncronizedWithCurrentItem = true;
  
      //Bind current seasons episodes to second listbox
      Binding bindEpisodes = new Binding("?????");
      Episodes.SetBinding(ListBox.ItemsSourceProperty, bindEpisodes);
      Episodes.DisplayMemberPath = "EpisodeTitle";
    }
  }
  </code></pre>
  
  <p>Anyone got any clues how to bind up the second listbox?</p>