title: Find listBox name or typeOf object in WPF C# drag & drop
body: <p>I'm writing an app where i can drag from one list to another one, but i can also drag from the same list to itself. Is there anyway to know which list is the source list (I mean which list i dragged from) or what data i dragged?
  I have 2 lists: lbTwo and lbOne, and two datas (one for each list of ObservableCollection): firstDataType and secondDataType.
  The only way i found to get the data is (But i prefer to get the list name and not the data it contains):</p>
  
  <pre><code> private void ListBox_Drop(object sender, DragEventArgs e)
   {
              ListBox parent = (ListBox)sender;
  
              string data_type = (e.Data.GetFormats())[0];
   }
  </code></pre>
  
  <p>but it's not really elegant and i also get the whole name (Myapp.firstDataType).</p>
  
  <p>Thanks!!</p>