C# 클래스 GongSolutions.Wpf.DragDrop.DragDrop

파일 보기 프로젝트 열기: punker76/gong-wpf-dragdrop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DataFormat System.Windows.DataFormat
DefaultDragAdornerOpacityProperty System.Windows.DependencyProperty
DragAdornerTemplateProperty System.Windows.DependencyProperty
DragAdornerTemplateSelectorProperty System.Windows.DependencyProperty
DragDirectlySelectedOnlyProperty System.Windows.DependencyProperty
DragDropContextProperty System.Windows.DependencyProperty
DragDropCopyKeyStateProperty System.Windows.DependencyProperty
DragHandlerProperty System.Windows.DependencyProperty
DragMouseAnchorPointProperty System.Windows.DependencyProperty
DragSourceIgnoreProperty System.Windows.DependencyProperty
DropHandlerProperty System.Windows.DependencyProperty
EffectAllAdornerTemplateProperty System.Windows.DependencyProperty
EffectCopyAdornerTemplateProperty System.Windows.DependencyProperty
EffectLinkAdornerTemplateProperty System.Windows.DependencyProperty
EffectMoveAdornerTemplateProperty System.Windows.DependencyProperty
EffectNoneAdornerTemplateProperty System.Windows.DependencyProperty
EffectScrollAdornerTemplateProperty System.Windows.DependencyProperty
IsDragSourceProperty System.Windows.DependencyProperty
IsDropTargetProperty System.Windows.DependencyProperty
ItemsPanelOrientationProperty System.Windows.DependencyProperty
UseDefaultDragAdornerProperty System.Windows.DependencyProperty
UseDefaultEffectDataTemplateProperty System.Windows.DependencyProperty
UseVisualSourceItemSizeForDragAdornerProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
CaptureScreen BitmapSource
CreateDefaultEffectDataTemplate System.Windows.DataTemplate
CreateDragAdorner void
CreateEffectAdorner void
DragSource_PreviewMouseLeftButtonDown void
DragSource_PreviewMouseLeftButtonUp void
DragSource_PreviewMouseMove void
DragSource_QueryContinueDrag void
DropTarget_GiveFeedback void
DropTarget_PreviewDragEnter void
DropTarget_PreviewDragLeave void
DropTarget_PreviewDragOver void
DropTarget_PreviewDrop void
GetEffectAdornerTemplate System.Windows.DataTemplate
IsDragSourceChanged void
IsDropTargetChanged void
Scroll void
TryGetDragHandler IDragSource
TryGetDropHandler IDropTarget

공개 메소드들

메소드 설명
GetDefaultDragAdornerOpacity ( UIElement target ) : double
GetDragAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
GetDragAdornerTemplateSelector ( DependencyObject element ) : System.Windows.Controls.DataTemplateSelector
GetDragDirectlySelectedOnly ( DependencyObject obj ) : bool
GetDragDropContext ( UIElement target ) : string
GetDragDropCopyKeyState ( UIElement target ) : DragDropKeyStates

Gets the drag drop copy key state indicating the effect of the drag drop operation.

GetDragHandler ( UIElement target ) : IDragSource
GetDragMouseAnchorPoint ( UIElement target ) : Point
GetDragSourceIgnore ( UIElement source ) : bool
GetDropHandler ( UIElement target ) : IDropTarget
GetEffectAllAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
GetEffectCopyAdornerTemplate ( UIElement target, string destinationText ) : System.Windows.DataTemplate
GetEffectLinkAdornerTemplate ( UIElement target, string destinationText ) : System.Windows.DataTemplate
GetEffectMoveAdornerTemplate ( UIElement target, string destinationText ) : System.Windows.DataTemplate
GetEffectNoneAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
GetEffectScrollAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
GetIsDragSource ( UIElement target ) : bool
GetIsDropTarget ( UIElement target ) : bool
GetItemsPanelOrientation ( UIElement source ) : Orientation?

Gets the Orientation which should be used for the drag drop action (default null). Normally it will be look up to find the correct orientaion of the inner ItemsPanel, but sometimes it's necessary to force the oreintation, if the look up is wrong.

GetUseDefaultDragAdorner ( UIElement target ) : bool
GetUseDefaultEffectDataTemplate ( UIElement target ) : bool
GetUseVisualSourceItemSizeForDragAdorner ( UIElement target ) : bool
SetDefaultDragAdornerOpacity ( UIElement target, double value ) : void
SetDragAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
SetDragAdornerTemplateSelector ( DependencyObject element, System.Windows.Controls.DataTemplateSelector value ) : void
SetDragDirectlySelectedOnly ( DependencyObject obj, bool value ) : void
SetDragDropContext ( UIElement target, string value ) : void
SetDragDropCopyKeyState ( UIElement target, DragDropKeyStates value ) : void

Sets the drag drop copy key state indicating the effect of the drag drop operation.

SetDragHandler ( UIElement target, IDragSource value ) : void
SetDragMouseAnchorPoint ( UIElement target, Point value ) : void
SetDragSourceIgnore ( UIElement source, bool value ) : void
SetDropHandler ( UIElement target, IDropTarget value ) : void
SetEffectAllAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
SetEffectCopyAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
SetEffectLinkAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
SetEffectMoveAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
SetEffectNoneAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
SetEffectScrollAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
SetIsDragSource ( UIElement target, bool value ) : void
SetIsDropTarget ( UIElement target, bool value ) : void
SetItemsPanelOrientation ( UIElement source, Orientation value ) : void

Sets the Orientation which should be used for the drag drop action (default null). Normally it will be look up to find the correct orientaion of the inner ItemsPanel, but sometimes it's necessary to force the oreintation, if the look up is wrong.

SetUseDefaultDragAdorner ( UIElement target, bool value ) : void
SetUseDefaultEffectDataTemplate ( UIElement target, bool value ) : void
SetUseVisualSourceItemSizeForDragAdorner ( UIElement target, bool value ) : void

비공개 메소드들

메소드 설명
CaptureScreen ( Visual target, FlowDirection flowDirection ) : BitmapSource
CreateDefaultEffectDataTemplate ( UIElement target, BitmapImage effectIcon, string effectText, string destinationText ) : System.Windows.DataTemplate
CreateDragAdorner ( GongSolutions.Wpf.DragDrop.DropInfo dropInfo ) : void
CreateEffectAdorner ( GongSolutions.Wpf.DragDrop.DropInfo dropInfo ) : void
DragSource_PreviewMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
DragSource_PreviewMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
DragSource_PreviewMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
DragSource_QueryContinueDrag ( object sender, System.Windows.QueryContinueDragEventArgs e ) : void
DropTarget_GiveFeedback ( object sender, System.Windows.GiveFeedbackEventArgs e ) : void
DropTarget_PreviewDragEnter ( object sender, System.Windows.DragEventArgs e ) : void
DropTarget_PreviewDragLeave ( object sender, System.Windows.DragEventArgs e ) : void
DropTarget_PreviewDragOver ( object sender, System.Windows.DragEventArgs e ) : void
DropTarget_PreviewDrop ( object sender, System.Windows.DragEventArgs e ) : void
GetEffectAdornerTemplate ( UIElement target, DragDropEffects effect, string destinationText ) : System.Windows.DataTemplate
IsDragSourceChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
IsDropTargetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
Scroll ( ScrollViewer scrollViewer, System.Windows.DragEventArgs e ) : void
TryGetDragHandler ( GongSolutions.Wpf.DragDrop.DragInfo dragInfo, UIElement sender ) : IDragSource

Gets the drag handler from the drag info or from the sender, if the drag info is null

TryGetDropHandler ( GongSolutions.Wpf.DragDrop.DropInfo dropInfo, UIElement sender ) : IDropTarget

Gets the drop handler from the drop info or from the sender, if the drop info is null

메소드 상세

GetDefaultDragAdornerOpacity() 공개 정적인 메소드

public static GetDefaultDragAdornerOpacity ( UIElement target ) : double
target UIElement
리턴 double

GetDragAdornerTemplate() 공개 정적인 메소드

public static GetDragAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
target UIElement
리턴 System.Windows.DataTemplate

GetDragAdornerTemplateSelector() 공개 정적인 메소드

public static GetDragAdornerTemplateSelector ( DependencyObject element ) : System.Windows.Controls.DataTemplateSelector
element System.Windows.DependencyObject
리턴 System.Windows.Controls.DataTemplateSelector

GetDragDirectlySelectedOnly() 공개 정적인 메소드

public static GetDragDirectlySelectedOnly ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
리턴 bool

GetDragDropContext() 공개 정적인 메소드

public static GetDragDropContext ( UIElement target ) : string
target UIElement
리턴 string

GetDragDropCopyKeyState() 공개 정적인 메소드

Gets the drag drop copy key state indicating the effect of the drag drop operation.
public static GetDragDropCopyKeyState ( UIElement target ) : DragDropKeyStates
target UIElement
리턴 DragDropKeyStates

GetDragHandler() 공개 정적인 메소드

public static GetDragHandler ( UIElement target ) : IDragSource
target UIElement
리턴 IDragSource

GetDragMouseAnchorPoint() 공개 정적인 메소드

public static GetDragMouseAnchorPoint ( UIElement target ) : Point
target UIElement
리턴 Point

GetDragSourceIgnore() 공개 정적인 메소드

public static GetDragSourceIgnore ( UIElement source ) : bool
source UIElement
리턴 bool

GetDropHandler() 공개 정적인 메소드

public static GetDropHandler ( UIElement target ) : IDropTarget
target UIElement
리턴 IDropTarget

GetEffectAllAdornerTemplate() 공개 정적인 메소드

public static GetEffectAllAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
target UIElement
리턴 System.Windows.DataTemplate

GetEffectCopyAdornerTemplate() 공개 정적인 메소드

public static GetEffectCopyAdornerTemplate ( UIElement target, string destinationText ) : System.Windows.DataTemplate
target UIElement
destinationText string
리턴 System.Windows.DataTemplate

GetEffectLinkAdornerTemplate() 공개 정적인 메소드

public static GetEffectLinkAdornerTemplate ( UIElement target, string destinationText ) : System.Windows.DataTemplate
target UIElement
destinationText string
리턴 System.Windows.DataTemplate

GetEffectMoveAdornerTemplate() 공개 정적인 메소드

public static GetEffectMoveAdornerTemplate ( UIElement target, string destinationText ) : System.Windows.DataTemplate
target UIElement
destinationText string
리턴 System.Windows.DataTemplate

GetEffectNoneAdornerTemplate() 공개 정적인 메소드

public static GetEffectNoneAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
target UIElement
리턴 System.Windows.DataTemplate

GetEffectScrollAdornerTemplate() 공개 정적인 메소드

public static GetEffectScrollAdornerTemplate ( UIElement target ) : System.Windows.DataTemplate
target UIElement
리턴 System.Windows.DataTemplate

GetIsDragSource() 공개 정적인 메소드

public static GetIsDragSource ( UIElement target ) : bool
target UIElement
리턴 bool

GetIsDropTarget() 공개 정적인 메소드

public static GetIsDropTarget ( UIElement target ) : bool
target UIElement
리턴 bool

GetItemsPanelOrientation() 공개 정적인 메소드

Gets the Orientation which should be used for the drag drop action (default null). Normally it will be look up to find the correct orientaion of the inner ItemsPanel, but sometimes it's necessary to force the oreintation, if the look up is wrong.
public static GetItemsPanelOrientation ( UIElement source ) : Orientation?
source UIElement
리턴 Orientation?

GetUseDefaultDragAdorner() 공개 정적인 메소드

public static GetUseDefaultDragAdorner ( UIElement target ) : bool
target UIElement
리턴 bool

GetUseDefaultEffectDataTemplate() 공개 정적인 메소드

public static GetUseDefaultEffectDataTemplate ( UIElement target ) : bool
target UIElement
리턴 bool

GetUseVisualSourceItemSizeForDragAdorner() 공개 정적인 메소드

public static GetUseVisualSourceItemSizeForDragAdorner ( UIElement target ) : bool
target UIElement
리턴 bool

SetDefaultDragAdornerOpacity() 공개 정적인 메소드

public static SetDefaultDragAdornerOpacity ( UIElement target, double value ) : void
target UIElement
value double
리턴 void

SetDragAdornerTemplate() 공개 정적인 메소드

public static SetDragAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
target UIElement
value System.Windows.DataTemplate
리턴 void

SetDragAdornerTemplateSelector() 공개 정적인 메소드

public static SetDragAdornerTemplateSelector ( DependencyObject element, System.Windows.Controls.DataTemplateSelector value ) : void
element System.Windows.DependencyObject
value System.Windows.Controls.DataTemplateSelector
리턴 void

SetDragDirectlySelectedOnly() 공개 정적인 메소드

public static SetDragDirectlySelectedOnly ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
리턴 void

SetDragDropContext() 공개 정적인 메소드

public static SetDragDropContext ( UIElement target, string value ) : void
target UIElement
value string
리턴 void

SetDragDropCopyKeyState() 공개 정적인 메소드

Sets the drag drop copy key state indicating the effect of the drag drop operation.
public static SetDragDropCopyKeyState ( UIElement target, DragDropKeyStates value ) : void
target UIElement
value DragDropKeyStates
리턴 void

SetDragHandler() 공개 정적인 메소드

public static SetDragHandler ( UIElement target, IDragSource value ) : void
target UIElement
value IDragSource
리턴 void

SetDragMouseAnchorPoint() 공개 정적인 메소드

public static SetDragMouseAnchorPoint ( UIElement target, Point value ) : void
target UIElement
value Point
리턴 void

SetDragSourceIgnore() 공개 정적인 메소드

public static SetDragSourceIgnore ( UIElement source, bool value ) : void
source UIElement
value bool
리턴 void

SetDropHandler() 공개 정적인 메소드

public static SetDropHandler ( UIElement target, IDropTarget value ) : void
target UIElement
value IDropTarget
리턴 void

SetEffectAllAdornerTemplate() 공개 정적인 메소드

public static SetEffectAllAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
target UIElement
value System.Windows.DataTemplate
리턴 void

SetEffectCopyAdornerTemplate() 공개 정적인 메소드

public static SetEffectCopyAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
target UIElement
value System.Windows.DataTemplate
리턴 void

SetEffectLinkAdornerTemplate() 공개 정적인 메소드

public static SetEffectLinkAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
target UIElement
value System.Windows.DataTemplate
리턴 void

SetEffectMoveAdornerTemplate() 공개 정적인 메소드

public static SetEffectMoveAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
target UIElement
value System.Windows.DataTemplate
리턴 void

SetEffectNoneAdornerTemplate() 공개 정적인 메소드

public static SetEffectNoneAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
target UIElement
value System.Windows.DataTemplate
리턴 void

SetEffectScrollAdornerTemplate() 공개 정적인 메소드

public static SetEffectScrollAdornerTemplate ( UIElement target, System.Windows.DataTemplate value ) : void
target UIElement
value System.Windows.DataTemplate
리턴 void

SetIsDragSource() 공개 정적인 메소드

public static SetIsDragSource ( UIElement target, bool value ) : void
target UIElement
value bool
리턴 void

SetIsDropTarget() 공개 정적인 메소드

public static SetIsDropTarget ( UIElement target, bool value ) : void
target UIElement
value bool
리턴 void

SetItemsPanelOrientation() 공개 정적인 메소드

Sets the Orientation which should be used for the drag drop action (default null). Normally it will be look up to find the correct orientaion of the inner ItemsPanel, but sometimes it's necessary to force the oreintation, if the look up is wrong.
public static SetItemsPanelOrientation ( UIElement source, Orientation value ) : void
source UIElement
value Orientation
리턴 void

SetUseDefaultDragAdorner() 공개 정적인 메소드

public static SetUseDefaultDragAdorner ( UIElement target, bool value ) : void
target UIElement
value bool
리턴 void

SetUseDefaultEffectDataTemplate() 공개 정적인 메소드

public static SetUseDefaultEffectDataTemplate ( UIElement target, bool value ) : void
target UIElement
value bool
리턴 void

SetUseVisualSourceItemSizeForDragAdorner() 공개 정적인 메소드

public static SetUseVisualSourceItemSizeForDragAdorner ( UIElement target, bool value ) : void
target UIElement
value bool
리턴 void

프로퍼티 상세

DataFormat 공개적으로 정적으로 프로퍼티

public static DataFormat,System.Windows DataFormat
리턴 System.Windows.DataFormat

DefaultDragAdornerOpacityProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DefaultDragAdornerOpacityProperty
리턴 System.Windows.DependencyProperty

DragAdornerTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DragAdornerTemplateProperty
리턴 System.Windows.DependencyProperty

DragAdornerTemplateSelectorProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DragAdornerTemplateSelectorProperty
리턴 System.Windows.DependencyProperty

DragDirectlySelectedOnlyProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DragDirectlySelectedOnlyProperty
리턴 System.Windows.DependencyProperty

DragDropContextProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DragDropContextProperty
리턴 System.Windows.DependencyProperty

DragDropCopyKeyStateProperty 공개적으로 정적으로 프로퍼티

The drag drop copy key state property (default None). So the drag drop action is - Move, within the same control or from one to another, if the drag drop key state is None - Copy, from one to another control with the given drag drop copy key state
public static DependencyProperty,System.Windows DragDropCopyKeyStateProperty
리턴 System.Windows.DependencyProperty

DragHandlerProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DragHandlerProperty
리턴 System.Windows.DependencyProperty

DragMouseAnchorPointProperty 공개적으로 정적으로 프로퍼티

DragMouseAnchorPoint defines the horizontal and vertical proportion at which the pointer will anchor on the DragAdorner.
public static DependencyProperty,System.Windows DragMouseAnchorPointProperty
리턴 System.Windows.DependencyProperty

DragSourceIgnoreProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DragSourceIgnoreProperty
리턴 System.Windows.DependencyProperty

DropHandlerProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DropHandlerProperty
리턴 System.Windows.DependencyProperty

EffectAllAdornerTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows EffectAllAdornerTemplateProperty
리턴 System.Windows.DependencyProperty

EffectCopyAdornerTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows EffectCopyAdornerTemplateProperty
리턴 System.Windows.DependencyProperty

EffectLinkAdornerTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows EffectLinkAdornerTemplateProperty
리턴 System.Windows.DependencyProperty

EffectMoveAdornerTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows EffectMoveAdornerTemplateProperty
리턴 System.Windows.DependencyProperty

EffectNoneAdornerTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows EffectNoneAdornerTemplateProperty
리턴 System.Windows.DependencyProperty

EffectScrollAdornerTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows EffectScrollAdornerTemplateProperty
리턴 System.Windows.DependencyProperty

IsDragSourceProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsDragSourceProperty
리턴 System.Windows.DependencyProperty

IsDropTargetProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsDropTargetProperty
리턴 System.Windows.DependencyProperty

ItemsPanelOrientationProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ItemsPanelOrientationProperty
리턴 System.Windows.DependencyProperty

UseDefaultDragAdornerProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows UseDefaultDragAdornerProperty
리턴 System.Windows.DependencyProperty

UseDefaultEffectDataTemplateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows UseDefaultEffectDataTemplateProperty
리턴 System.Windows.DependencyProperty

UseVisualSourceItemSizeForDragAdornerProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows UseVisualSourceItemSizeForDragAdornerProperty
리턴 System.Windows.DependencyProperty