title: WPF dealing with files in a listBox
body: <p>I intend to create a .mp4 Listbox from which I can play an .mp4 of my choice.
  I've already created the .mp4 player(by drag&amp;drop) and I'm dealing with trouble with how to deal with the listBox.</p>
  
  <pre><code>        private void button1_Click(object sender, RoutedEventArgs e)
      {
          var dialog = new System.Windows.Forms.FolderBrowserDialog();
          System.Windows.Forms.DialogResult result = dialog.ShowDialog();
          try
          {
              DirectoryInfo dr = new DirectoryInfo(dialog.SelectedPath.ToString());
              if (result == FORMS.DialogResult.OK)
              {
                  foreach (FileInfo f in dr.GetFiles())
                  {
                      listBox1.Items.Add(f);
                  }
              }
          }
          catch { }
      }
  </code></pre>
  
  <p>This only enables me to get all the .mp4 files(from selected folder) to be shown in the listBox,
  How do I manage to drag objects from the listBox into the .mp4 player(which is already drag and drop enabled).</p>