title: Binding MVVM CheckBox inside a Listbox
body: <p>I'm trying to use the pattern MVVM inside my application Windows Phone. But i have a problem with this one to bind a CheckBox who's inside a listbox.</p>
  
  <p>This is my .xaml</p>
  
  <pre><code>&lt;ListBox x:Name="LstbTagsFavoris"  SelectionChanged="favoris_SelectionChanged" Margin="10,10,0,0"&gt;
  &lt;ListBox.ItemTemplate&gt;
     &lt;DataTemplate&gt;
           &lt;CheckBox Foreground="#555" Background="Red" Loaded="CheckBox_Loaded" Unchecked="CheckBox_Unchecked" Checked="CheckBox_Checked" Content="{Binding Categories}"/&gt;
     &lt;/DataTemplate&gt;
  &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>My ViewModel </p>
  
  <pre><code>public class CategorieViewModel
  {
      private List&lt;string&gt; _Categories = new List&lt;string&gt;();
  
      public List&lt;string&gt; Categories
      {
          get
          {
              return _Categories;
          }
  
          set
          {
              _Categories = value;
          }
      }
  
      public void GetCategories()
      {
          Categories = GlobalVar._GlobalItem.SelectMany(a =&gt; a.tags)
              .OrderBy(t =&gt; t)
              .Distinct()
              .ToList();
      }
  </code></pre>
  
  <p>In my xaml.cs : </p>
  
  <pre><code>            CategorieViewModel c = new CategorieViewModel();
          c.GetCategories();
          this.DataContext = c;
  </code></pre>
  
  <p>But it didn't work</p>