C# Класс Yuhan.WPF.DragDrop.DragDropHelper

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AdornerLayerProperty System.Windows.DependencyProperty
DragDropControlProperty System.Windows.DependencyProperty
DropTargetProperty System.Windows.DependencyProperty
IsDragSourceProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
DragSource_PreviewMouseLeftButtonDown void
DragSource_PreviewMouseLeftButtonUp void
DragSource_PreviewMouseMove void
IsDragSourceChanged void
_adorner_MouseMove void
_adorner_MouseUp void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

FindAncestor() публичный статический Метод

public static FindAncestor ( Type ancestorType, Visual visual ) : FrameworkElement
ancestorType System.Type
visual Visual
Результат System.Windows.FrameworkElement

GetAdornerLayer() публичный статический Метод

public static GetAdornerLayer ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
Результат string

GetDragDropControl() публичный статический Метод

public static GetDragDropControl ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject
Результат UIElement

GetDropTarget() публичный статический Метод

public static GetDropTarget ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
Результат string

GetIsDragSource() публичный статический Метод

public static GetIsDragSource ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Результат bool

IsMovementBigEnough() публичный статический Метод

public static IsMovementBigEnough ( Point initialMousePosition, Point currentPosition ) : bool
initialMousePosition Point
currentPosition Point
Результат bool

SetAdornerLayer() публичный статический Метод

public static SetAdornerLayer ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
Результат void

SetDragDropControl() публичный статический Метод

public static SetDragDropControl ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject
value UIElement
Результат void

SetDropTarget() публичный статический Метод

public static SetDropTarget ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
Результат void

SetIsDragSource() публичный статический Метод

public static SetIsDragSource ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Результат void

Описание свойств

AdornerLayerProperty публичное статическое свойство

public static DependencyProperty,System.Windows AdornerLayerProperty
Результат System.Windows.DependencyProperty

DragDropControlProperty публичное статическое свойство

public static DependencyProperty,System.Windows DragDropControlProperty
Результат System.Windows.DependencyProperty

DropTargetProperty публичное статическое свойство

public static DependencyProperty,System.Windows DropTargetProperty
Результат System.Windows.DependencyProperty

IsDragSourceProperty публичное статическое свойство

public static DependencyProperty,System.Windows IsDragSourceProperty
Результат System.Windows.DependencyProperty