C# Class Yuhan.WPF.DragDrop.DragDropFramework.DataConsumerBase

This class provides some default implementations for IDataConsumer that can be used by derived classes. This class represents dragged data that can be consumed.
Inheritance: IDataConsumer
Afficher le fichier Open project: hansuky/Yuhan

Méthodes publiques

Méthode Description
DataConsumerBase ( string dataFormats ) : System

Create a Data Consumer that supports the specified data formats

DropTarget_DragEnter ( object sender, System.Windows.DragEventArgs e ) : void

Occurs when mouse enters the area occupied by the dropTarget (specified in the constructor). Provide your own method if you wish; making sure to define DragEnter in DataConsumerActions. See DropTarget_DragEnter in DropManager for additional comments.

DropTarget_DragLeave ( object sender, System.Windows.DragEventArgs e ) : void

Occurs when mouse leaves the area occupied by the dropTarget (specified in the constructor). Provide your own method if you wish; making sure to define DragEnter in DataConsumerActions. See DropTarget_DragLeave in DropManager for additional comments.

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

Occurs when mouse is over the area occupied by the dropTarget (specified in the constructor). You must likely will provide your own method; make sure to define DragOver in DataConsumerActions.

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

Occurs when the left mouse button is released in the area occupied by the dropTarget (specified in the constructor). You must likely will provide your own method; make sure to define Drop in DataConsumerActions. See DropTarget_DragEnter in DropManager for additional comments.

GetData ( System.Windows.DragEventArgs e ) : object

Search the available data formats for a supported data format and return the first match

Method Details

DataConsumerBase() public méthode

Create a Data Consumer that supports the specified data formats
public DataConsumerBase ( string dataFormats ) : System
dataFormats string Data formats supported by this data consumer
Résultat System

DropTarget_DragEnter() public méthode

Occurs when mouse enters the area occupied by the dropTarget (specified in the constructor). Provide your own method if you wish; making sure to define DragEnter in DataConsumerActions. See DropTarget_DragEnter in DropManager for additional comments.
public DropTarget_DragEnter ( object sender, System.Windows.DragEventArgs e ) : void
sender object Drag event sender
e System.Windows.DragEventArgs DragEnter event arguments
Résultat void

DropTarget_DragLeave() public méthode

Occurs when mouse leaves the area occupied by the dropTarget (specified in the constructor). Provide your own method if you wish; making sure to define DragEnter in DataConsumerActions. See DropTarget_DragLeave in DropManager for additional comments.
public DropTarget_DragLeave ( object sender, System.Windows.DragEventArgs e ) : void
sender object Drag event sender
e System.Windows.DragEventArgs DragLeave event arguments
Résultat void

DropTarget_DragOver() public méthode

Occurs when mouse is over the area occupied by the dropTarget (specified in the constructor). You must likely will provide your own method; make sure to define DragOver in DataConsumerActions.
public DropTarget_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
sender object Drag event sender
e System.Windows.DragEventArgs DragOver event arguments
Résultat void

DropTarget_Drop() public méthode

Occurs when the left mouse button is released in the area occupied by the dropTarget (specified in the constructor). You must likely will provide your own method; make sure to define Drop in DataConsumerActions. See DropTarget_DragEnter in DropManager for additional comments.
public DropTarget_Drop ( object sender, System.Windows.DragEventArgs e ) : void
sender object Drag event sender
e System.Windows.DragEventArgs Drop event arguments
Résultat void

GetData() public méthode

Search the available data formats for a supported data format and return the first match
public GetData ( System.Windows.DragEventArgs e ) : object
e System.Windows.DragEventArgs DragEventArgs from one of the four Drag events
Résultat object