C# 클래스 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.
상속: IDataConsumer
파일 보기 프로젝트 열기: hansuky/Yuhan

공개 메소드들

메소드 설명
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

메소드 상세

DataConsumerBase() 공개 메소드

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

DropTarget_DragEnter() 공개 메소드

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
리턴 void

DropTarget_DragLeave() 공개 메소드

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
리턴 void

DropTarget_DragOver() 공개 메소드

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
리턴 void

DropTarget_Drop() 공개 메소드

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
리턴 void

GetData() 공개 메소드

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
리턴 object