title: ListView Binding array of objects access variables
body: <p><strong>EDIT</strong><br>
  Turns out the problem was with getting the enclosure it was throwing an error casting MtObject to Enclosure that wasn't being detected by the debugger.<br>
  Marked Andy's solution as correct as it is, and it helped me to see the problem was not in the ListView code, thank you andy </p>
  
  <p>So i have been searching around and don't seem to be able to find the right answer.<br>
  Basically i have a ListView which i have bound to an array of Animals and one animal has a property of another object Enclosure, and im trying to bind the enclosure name like this </p>
  
  <pre><code>&lt;GridViewColumn Header="Enclosure"  DisplayMemberBinding="{Binding Enclosure.Name}" /&gt;
  </code></pre>
  
  <p>this is clearly wrong but i think shows what I'm trying to achieve,<br>
  The basic layout is object.object.  </p>
  
  <p>The full ListView below</p>
  
  <pre><code>&lt;ListView Margin="20,0,20,0" Grid.Row="1" ItemsSource="{Binding}" x:Name="displayResults" SelectionChanged="displayResults_SelectionChanged_1"&gt;
                          &lt;ListView.ItemContainerStyle&gt;
                              &lt;Style TargetType="ListViewItem"&gt;
                                  &lt;Setter Property="Height" Value="45" /&gt;
                              &lt;/Style&gt;
                          &lt;/ListView.ItemContainerStyle&gt;
                          &lt;ListView.View&gt;
                              &lt;GridView x:Name="gridView"&gt;
                                  &lt;GridViewColumn Header="Photo" CellTemplate="{StaticResource PhotoTemplate}"/&gt;
                                  &lt;GridViewColumn Header="Name" DisplayMemberBinding="{Binding GivenName}" /&gt;
                                  &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Enclosure.Id}" Header="Enclosure"/&gt;
                                  &lt;GridViewColumn Header="Species"  DisplayMemberBinding="{Binding SpeciesName}" /&gt;
                                  &lt;GridViewColumn Header="DOB"  DisplayMemberBinding="{Binding Dob}" /&gt;
                                  &lt;GridViewColumn Header="Average Life Span"  DisplayMemberBinding="{Binding AverageLifeSpan}" /&gt;
                                  &lt;GridViewColumn Header="Natural Habitat"  DisplayMemberBinding="{Binding NaturalHabitat}" /&gt;
  
                              &lt;/GridView&gt;
                          &lt;/ListView.View&gt;
                      &lt;/ListView&gt;
  </code></pre>
  
  <p>How the enclosure  get/set</p>
  
  <pre><code>public Enclosure Enclosure {
          get {
              return ((Enclosure)(GetSuccessor(GetEnclosureRelationship(Database))));
          }
          set {
              SetSuccessor(GetEnclosureRelationship(Database), value);
          }
      }
  </code></pre>