title: TreeView ItemsSource MVVM Binding
body: <p>i have a TreeView with default treeviewitem, and another with dynaic value. But instead of having name of the TreeViewItem, i have that:
  <a href="https://gyazo.com/00563993faf7f5d59bb8ab6870fd428d" rel="nofollow">https://gyazo.com/00563993faf7f5d59bb8ab6870fd428d</a></p>
  
  <p>The entire line is : "MyWindowsMediaPlayer.Model.PlaylistDB"</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;TreeView Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="135"&gt;
              &lt;TreeViewItem Header="Bibliotheque" IsExpanded="True"&gt;
                  &lt;TreeViewItem Header="Mes Musiques" IsSelected="True"&gt;&lt;/TreeViewItem&gt;
                  &lt;TreeViewItem Header="Mes Videos"&gt;&lt;/TreeViewItem&gt;
                  &lt;TreeViewItem Header="Mes Images"&gt;&lt;/TreeViewItem&gt;
              &lt;/TreeViewItem&gt;
              &lt;TreeViewItem Header="Lecteur"&gt;&lt;/TreeViewItem&gt;
              &lt;TreeViewItem Header="Playlist" ItemsSource="{Binding ItemSourceTree}"&gt;
              &lt;/TreeViewItem&gt;
          &lt;/TreeView&gt;
  </code></pre>
  
  <p>CS:</p>
  
  <pre><code>private ObservableCollection&lt;PlaylistDB&gt; _itemSourceTree;
  public ObservableCollection&lt;PlaylistDB&gt; ItemSourceTree
          {
              get { return this._itemSourceTree; }
              set
              {
                  this._itemSourceTree = value;
                  this.OnPropertyChanged("ItemSourceTree");
              }
          }
  </code></pre>
  
  <p>And at the Initialization:</p>
  
  <pre><code>this.ItemSourceTree.Add(new PlaylistDB() { NamePlaylist = "I'm a test" });
  this.ItemSourceTree.Add(new PlaylistDB() { NamePlaylist = "I'm a test 2 " });
  </code></pre>