C# Class Yuhan.WPF.DragDrop.DragDropHelper

Show file Open project: hansuky/Yuhan Class Usage Examples

Public Properties

Property Type Description
AdornerLayerProperty System.Windows.DependencyProperty
DragDropControlProperty System.Windows.DependencyProperty
DropTargetProperty System.Windows.DependencyProperty
IsDragSourceProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
DragSource_PreviewMouseLeftButtonDown void
DragSource_PreviewMouseLeftButtonUp void
DragSource_PreviewMouseMove void
IsDragSourceChanged void
_adorner_MouseMove void
_adorner_MouseUp void

Public Methods

Method Description
FindAncestor ( Type ancestorType, Visual visual ) : FrameworkElement
GetAdornerLayer ( DependencyObject obj ) : string
GetDragDropControl ( DependencyObject obj ) : UIElement
GetDropTarget ( DependencyObject obj ) : string
GetIsDragSource ( DependencyObject obj ) : bool
IsMovementBigEnough ( Point initialMousePosition, Point currentPosition ) : bool
SetAdornerLayer ( DependencyObject obj, string value ) : void
SetDragDropControl ( DependencyObject obj, UIElement value ) : void
SetDropTarget ( DependencyObject obj, string value ) : void
SetIsDragSource ( DependencyObject obj, bool value ) : void

Private Methods

Method Description
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
IsDragSourceChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
_adorner_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
_adorner_MouseUp ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Method Details

FindAncestor() public static method

public static FindAncestor ( Type ancestorType, Visual visual ) : FrameworkElement
ancestorType System.Type
visual Visual
return System.Windows.FrameworkElement

GetAdornerLayer() public static method

public static GetAdornerLayer ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
return string

GetDragDropControl() public static method

public static GetDragDropControl ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject
return UIElement

GetDropTarget() public static method

public static GetDropTarget ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
return string

GetIsDragSource() public static method

public static GetIsDragSource ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

IsMovementBigEnough() public static method

public static IsMovementBigEnough ( Point initialMousePosition, Point currentPosition ) : bool
initialMousePosition Point
currentPosition Point
return bool

SetAdornerLayer() public static method

public static SetAdornerLayer ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
return void

SetDragDropControl() public static method

public static SetDragDropControl ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject
value UIElement
return void

SetDropTarget() public static method

public static SetDropTarget ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
return void

SetIsDragSource() public static method

public static SetIsDragSource ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

Property Details

AdornerLayerProperty public static property

public static DependencyProperty,System.Windows AdornerLayerProperty
return System.Windows.DependencyProperty

DragDropControlProperty public static property

public static DependencyProperty,System.Windows DragDropControlProperty
return System.Windows.DependencyProperty

DropTargetProperty public static property

public static DependencyProperty,System.Windows DropTargetProperty
return System.Windows.DependencyProperty

IsDragSourceProperty public static property

public static DependencyProperty,System.Windows IsDragSourceProperty
return System.Windows.DependencyProperty