C# 클래스 Yuhan.WPF.DragDrop.DragDropFrameworkData.StringToCanvasTextBlock

This data consumer looks for an object of type string. When the item is dropped, a TextBlock is created with its text initialized to the contents of the data string. The TextBlock's origin is placed on the canvas at the point where the string was dropped.
상속: Yuhan.WPF.DragDrop.DragDropFramework.DataConsumerBase, IDataConsumer
파일 보기 프로젝트 열기: hansuky/Yuhan 1 사용 예제들

공개 메소드들

메소드 설명
DropTarget_DragEnter ( object sender, System.Windows.DragEventArgs e ) : void
DropTarget_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
DropTarget_Drop ( object sender, System.Windows.DragEventArgs e ) : void
StringToCanvasTextBlock ( string dataFormats ) : System

Create a string data consumer for a canvas

비공개 메소드들

메소드 설명
DragOverOrDrop ( bool bDrop, object sender, System.Windows.DragEventArgs e ) : void

First determine whether the drag data is supported. Finally handle the actual drop when bDrop is true by creating a new TextBlock and initializing its Text property to the value of the string. The TextBlock is placed on the canvas such that its origin is at the point when the string was dropped.

메소드 상세

DropTarget_DragEnter() 공개 메소드

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

DropTarget_DragOver() 공개 메소드

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

DropTarget_Drop() 공개 메소드

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

StringToCanvasTextBlock() 공개 메소드

Create a string data consumer for a canvas
public StringToCanvasTextBlock ( string dataFormats ) : System
dataFormats string A data format whose data is of type string
리턴 System