title: Cannot implicitly convert type 'System.Collections.Generic.List to 'System.Collections.ObjectModel.ObservableCollection
body: <p>I am trying to return collection and assign it to a listbox but I am getting following error </p>
  
  <blockquote>
    <p><em>"Cannot implicitly convert type 'System.Collections.Generic.List to
    'System.Collections.ObjectModel.ObservableCollection"</em></p>
  </blockquote>
  
  <p>I am new to WPF &amp; C# I got no clue how to handle this.</p>
  
  <p>All I want to do is load all videos in My Videos folder into listbox containing media element control.</p>
  
  <p>What would be the correct way to return?</p>
  
  <p>Code:</p>
  
  <pre><code>public class Video 
  {
      public Uri SourceUri { get; set; }
  
      public static ObservableCollection&lt;Video&gt; LoadVideoInfo()
      {
          List&lt;Video&gt; videoresult = new List&lt;Video&gt;();
  
              foreach (string filename in
              System.IO.Directory.GetFiles(
              Environment.GetFolderPath(
              Environment.SpecialFolder.MyVideos)))
  
              videoresult.Add(new Video { SourceUri = new UriBuilder(filename).Uri });
  
          return videoresult;
      }
  }
  </code></pre>
  
  <p>XAML:</p>
  
  <pre><code>&lt;ListBox x:Name="VideoList" ItemsSource="{Binding }" Width="auto" Height=" auto" Margin="5,0,5,2" Grid.ColumnSpan="2" &gt;
      &lt;ListBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;MediaElement Source="{Binding SourceUri}" /&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>