C# Class MetroIde.Controls.DragDropListBox.DragDropHelper

Show file Open project: ChadSki/Quickbeam

Public Properties

Property Type Description
DragDropTemplateProperty System.Windows.DependencyProperty
IsDragSourceProperty System.Windows.DependencyProperty
IsDropTargetProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CreateInsertionAdorner void
DecideDropTarget void
DragSource_PreviewMouseLeftButtonDown void
DragSource_PreviewMouseLeftButtonUp void
DragSource_PreviewMouseMove void
DropTarget_PreviewDragEnter void
DropTarget_PreviewDragLeave void
DropTarget_PreviewDragOver void
DropTarget_PreviewDrop void
IsDragSourceChanged void
IsDropDataTypeAllowed bool
IsDropTargetChanged void
RemoveDraggedAdorner void
RemoveInsertionAdorner void
ShowDraggedAdorner void
TopWindow_DragEnter void
TopWindow_DragLeave void
TopWindow_DragOver void
UpdateInsertionAdornerPosition void

Public Methods

Method Description
GetDragDropTemplate ( DependencyObject obj ) : System.Windows.DataTemplate
GetIsDragSource ( DependencyObject obj ) : bool
GetIsDropTarget ( DependencyObject obj ) : bool
SetDragDropTemplate ( DependencyObject obj, System.Windows.DataTemplate value ) : void
SetIsDragSource ( DependencyObject obj, bool value ) : void
SetIsDropTarget ( DependencyObject obj, bool value ) : void

Private Methods

Method Description
CreateInsertionAdorner ( ) : void
DecideDropTarget ( System.Windows.DragEventArgs e ) : 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
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
IsDragSourceChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
IsDropDataTypeAllowed ( object draggedItem ) : bool
IsDropTargetChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RemoveDraggedAdorner ( ) : void
RemoveInsertionAdorner ( ) : void
ShowDraggedAdorner ( Point currentPosition ) : void
TopWindow_DragEnter ( object sender, System.Windows.DragEventArgs e ) : void
TopWindow_DragLeave ( object sender, System.Windows.DragEventArgs e ) : void
TopWindow_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
UpdateInsertionAdornerPosition ( ) : void

Method Details

GetDragDropTemplate() public static method

public static GetDragDropTemplate ( DependencyObject obj ) : System.Windows.DataTemplate
obj System.Windows.DependencyObject
return System.Windows.DataTemplate

GetIsDragSource() public static method

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

GetIsDropTarget() public static method

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

SetDragDropTemplate() public static method

public static SetDragDropTemplate ( DependencyObject obj, System.Windows.DataTemplate value ) : void
obj System.Windows.DependencyObject
value System.Windows.DataTemplate
return void

SetIsDragSource() public static method

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

SetIsDropTarget() public static method

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

Property Details

DragDropTemplateProperty public static property

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

IsDragSourceProperty public static property

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

IsDropTargetProperty public static property

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