title: Binding in Nested List Boxes to multiple classes
body: <p>I'm making a nested listed box , basically because I need to bind multiple classes in a single list box , which I'm not able to do and hence the nested listed box. </p>
  
  <p>Here's what I do in the XAML page :</p>
  
  <pre><code>&lt;ListBox Name="abcd" Margin="10,0,30,0" ItemsSource="{Binding Title}"     SelectionChanged="ListBox_SelectionChanged" Height="486" Width="404" FontSize="20"&gt;
                  &lt;ListBox.ItemTemplate&gt;
                      &lt;DataTemplate &gt;
                          &lt;StackPanel Margin="0,0,10,0" Width="380" Height="140"&gt;
                              &lt;Grid  &gt;
                              &lt;TextBlock Text="{Binding cdata}" TextWrapping="Wrap" FontSize="{StaticResource PhoneFontSizeLarge}" /&gt;
                                  &lt;ListBox Name="ab" ItemsSource="{Binding Description}" FontSize="14"&gt;
                                      &lt;ListBox.ItemTemplate&gt;
                                          &lt;DataTemplate&gt;
                                              &lt;StackPanel Width="380" Height="100"&gt;
                                                  &lt;Grid&gt;
                                                     &lt;TextBlock Text="{Binding cdata}" TextWrapping="Wrap" FontSize="{StaticResource PhoneFontSizeLarge}" /&gt;
                                                  &lt;/Grid&gt;
                                              &lt;/StackPanel&gt;
                                          &lt;/DataTemplate&gt;
                                      &lt;/ListBox.ItemTemplate&gt;
                                  &lt;/ListBox&gt;
                              &lt;/Grid&gt;
                          &lt;/StackPanel&gt;                            
                      &lt;/DataTemplate&gt;
                  &lt;/ListBox.ItemTemplate&gt;
              &lt;/ListBox&gt;
  </code></pre>
  
  <p>where ListBox "abcd" has to be bound with class title and "ab" to the class Description.Both the classes have just one string field , "cdata".</p>
  
  <p>In the xaml.cs I do :</p>
  
  <pre><code>abcd.ItemsSource=from article in root.openfooty.news.article
                            select new Classes.Title 
                               { 
                                    cdata = article.title.cdata
                               };
  
         ab.ItemSource = from article in root.openfooty.news.article
                              select new Classes.Description
                                { 
                                    cdata = article.description.cdata
                                };
  </code></pre>
  
  <p>binding with "abcd" works fine but with "ab" it says "the nam ab doesnt exist in the current context"      </p>
  
  <p>Any help would be much appreciated. Thanks :D        </p>