title: WPF - Very basic ListBox.ItemTemplate Question
body: <p>Ok, this is an embarassingly simple-looking problem, but is driving me crazy. I'm learning about DataTemplating and am trying to apply a very VERY simple ItemTemplate to a ListBox.</p>
  
  <p>However, when I run my app, the template is completely ignored and I just get the standard-looking listbox, whereas in fact I'd expect to see a list of checkboxes with 'Test' along side.</p>
  
  <p>I've tried this several times and always the same result. I've checked several resource on Google and all have the same kind of syntax for defining and ItemTemplate on a ListBox, so I really cannot see where I'm going wrong.</p>
  
  <p>Code...</p>
  
  <pre><code>&lt;Grid x:Name="LayoutRoot"&gt;
      &lt;ListBox x:Name="TestList"
          SelectionMode="Multiple"&gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;StackPanel&gt;
                      &lt;CheckBox Content="Check this checkbox!"/&gt;
                      &lt;TextBlock&gt;Test&lt;/TextBlock&gt;
                  &lt;/StackPanel&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListBox.ItemTemplate&gt;
          &lt;ListBox.Items&gt;
              &lt;ListBoxItem&gt;Bob&lt;/ListBoxItem&gt;
              &lt;ListBoxItem&gt;Jim&lt;/ListBoxItem&gt;
              &lt;ListBoxItem&gt;Dave&lt;/ListBoxItem&gt;
              &lt;ListBoxItem&gt;Larry&lt;/ListBoxItem&gt;
              &lt;ListBoxItem&gt;Tom&lt;/ListBoxItem&gt;
          &lt;/ListBox.Items&gt;            
      &lt;/ListBox&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Any help greatly appreciated. Sorry for such a dumb-seeming question, but I've really fallen at the first hurdle here :(</p>
  
  <p>AT</p>