<ListBox ItemsSource="{Binding FileList}" SelectedItem="{Binding CurrentProject}"
dd:DragDrop.IsDragSource="True"
dd:DragDrop.IsDropTarget="True"
dd:DragDrop.DropHandler="{Binding}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock VerticalAlignment="Center" Text="{Binding Path=Name}"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
void IDropTarget.DragOver( IDropInfo dropInfo ) {
ImageFile sourceItem = dropInfo.Data as ImageFile;
ImageFile targetItem = dropInfo.TargetItem as ImageFile;
if (sourceItem != null && targetItem != null) {
///
}
}
void IDropTarget.Drop( IDropInfo dropInfo ) {
ImageFile sourceItem = dropInfo.Data as ImageFile;
ImageFile targetItem = dropInfo.TargetItem as ImageFile;
//TODO
}