C# Class Yuhan.WPF.DragDrop.DragDropFrameworkData.FileDropConsumer

This data consumer creates an item for every entry in a string array. It is meant to consume a FileDrop or a FileNameW. It knows how to create items for a TabControl, ListBox or TreeView.
Inheritance: Yuhan.WPF.DragDrop.DragDropFramework.DataConsumerBase, IDataConsumer
Datei anzeigen Open project: hansuky/Yuhan Class Usage Examples

Public Methods

Method Description
DropTarget_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
DropTarget_Drop ( object sender, System.Windows.DragEventArgs e ) : void
FileDropConsumer ( string dataFormats ) : System

Private Methods

Method Description
DragOverOrDrop ( bool bDrop, object sender, System.Windows.DragEventArgs e ) : void

First determine whether the drag data is supported. Second determine what type the container is. Third determine what operation to do (only copy is supported). And finally handle the actual drop when bDrop is true.

Method Details

DropTarget_DragOver() public method

public DropTarget_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
sender object
e System.Windows.DragEventArgs
return void

DropTarget_Drop() public method

public DropTarget_Drop ( object sender, System.Windows.DragEventArgs e ) : void
sender object
e System.Windows.DragEventArgs
return void

FileDropConsumer() public method

public FileDropConsumer ( string dataFormats ) : System
dataFormats string
return System