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
Exibir arquivo Open project: hansuky/Yuhan

Public Methods

Method 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 method

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

DropTarget_DragEnter() public method

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
return void

DropTarget_DragLeave() public method

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
return void

DropTarget_DragOver() public method

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
return void

DropTarget_Drop() public method

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
return void

GetData() public method

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
return object