namespace Oli.Controls.ConvertFilesExample { internal class FileDragDropSource : IDragDropSource { string[] _files; public FileDragDropSource(string[] files) { _files = files; } #region IDragDropSource Members string _dragDropGroup = "Files"; public string DragDropGroup { get { return _dragDropGroup; } set { _dragDropGroup = value; } } bool _isDragDropCopySource = true; public bool IsDragDropCopySource { get { return _isDragDropCopySource; } set { _isDragDropCopySource = value; } } bool _isDragDropMoveSource = false; public bool IsDragDropMoveSource { get { return _isDragDropMoveSource; } set { _isDragDropMoveSource = value; } } public object[] GetSelectedItems() { return _files; } public void RemoveSelectedItems(ref int rowIndexToAjust) { // Probably not a good idea to delete the files from the source here. } public void OnDropped(DroppedEventArgs e) { } #endregion } }