title: binding Strings of an Obect in a List <> to ListView in xaml with Data Templating
body: <p>Okay so in wpf xaml markup the data binding features allow for data binding a list to a listView. To do I specified the DataContext and set the ItemSource to the DataContext. This works and the listView is populated with the items. The items though are objects and to be able to have the displayed item in the list view as a string property of get set implementation from the object enumerated in the list view I am attempting to use an Item Template. Though this is not working and I'm uncertain why. </p>
  
  <p>How exactly does Item Template and the Data Binding function in this scenario? And what would be workable solutions to this problem? Is there a way to specify the property in the text box as being local to the enumerated objects. Please Help I've honestly been working on this for a while and research hasn't provided the answers.</p>
  
  <p>ItemList is a list of objects. ItemName is a string property of ItemList. The ItemSource and DataContext works but the textblock does not.</p>
  
  <p>Preferably a solution using only xaml.</p>
  
  <pre><code>&lt;ListView DataContext="this.ItemList" ItemsSource="{Binding }" Name ="Items"&gt;
                                  &lt;ListView.ItemTemplate&gt;
                                      &lt;DataTemplate&gt;
                                          &lt;TextBlock Text="{Binding ItemName}" &gt;
                                          &lt;/TextBlock&gt;
                                      &lt;/DataTemplate&gt;
                                  &lt;/ListView.ItemTemplate&gt;
  </code></pre>