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

This data consumer looks for all data formats specified in the constructor. When dropped, erase (Unparent) the source object.
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
TrashConsumer ( 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. Finally erase (Unparent) the source object 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

TrashConsumer() public méthode

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