title: C# WPF FileInfo Media Source?
body: <p>When I'm get .mp3 file without path but I couldn't play Uri got some errors. My codes; </p>
  
  <pre><code>private void listbox2_Drop(object sender, DragEventArgs e)
  {
  try
  {
      string[] a = (string[])(e.Data.GetData(DataFormats.FileDrop, false));
      foreach (var names in a)
      {
          FileInfo fileInfo = new FileInfo(names);
          if (fileInfo.Extension == ".MP3" ||fileInfo.Extension == ".mp3")
          {
              listbox2.Items.Add(   fileInfo.Name);
          }
      }
  }
  catch (Exception)
  {}
  }
  
  private void listbox2_MouseDoubleClick(object sender, MouseButtonEventArgs e)
  {      
      object listboxİtems = listbox2.SelectedItem;
      if (listboxİtems != null)
      {
          media2.Source = new Uri(listboxİtems.ToString(),    UriKind.Relative); // I'm getting erors here
          media2.Play();
      }
  }
  </code></pre>
  
  <p>he got error at media2.Source that listboxItems.ToString() string is unable to play </p>