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
Mostrar archivo 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
TrashConsumer ( 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. Finally erase (Unparent) the source object 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

TrashConsumer() public method

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