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
Afficher le fichier Open project: hansuky/Yuhan Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DropTarget_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
sender object
e System.Windows.DragEventArgs
Résultat void

DropTarget_Drop() public méthode

public DropTarget_Drop ( object sender, System.Windows.DragEventArgs e ) : void
sender object
e System.Windows.DragEventArgs
Résultat void

FileDropConsumer() public méthode

public FileDropConsumer ( string dataFormats ) : System
dataFormats string
Résultat System