Esempio n. 1
0
 private void StackPanel_Drop(object sender, DragEventArgs e)
 {
     if (e.Data.GetType() == typeof(System.Windows.DataObject))
     {
         DataObject dto = (DataObject)e.Data;
         foreach (String s in dto.GetFileDropList())
         {
             LinkIcon li = new LinkIcon();
             li.Link    = s;
             li.Padding = new Thickness(3);
             //li.Width = listView.ActualWidth-9;
             listView.Items.Add(li);
         }
         e.Handled = true;
     }
 }
Esempio n. 2
0
 private void StackPanel_Drop(object sender, DragEventArgs e)
 {
     if (e.Data.GetType() == typeof(System.Windows.DataObject))
     {
         DataObject dto = (DataObject)e.Data;
         foreach (String s in dto.GetFileDropList())
         {
             LinkIcon li = new LinkIcon();
             li.Link = s;
             li.Padding = new Thickness(3);
             //li.Width = listView.ActualWidth-9;
             listView.Items.Add(li);
             
         }
         e.Handled = true;
     }
 }