C# Class Yuhan.WPF.DragDrop.DragDropHelper

Afficher le fichier Open project: hansuky/Yuhan Class Usage Examples

Méthodes publiques

Свойство Type Description
AdornerLayerProperty System.Windows.DependencyProperty
DragDropControlProperty System.Windows.DependencyProperty
DropTargetProperty System.Windows.DependencyProperty
IsDragSourceProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
DragSource_PreviewMouseLeftButtonDown void
DragSource_PreviewMouseLeftButtonUp void
DragSource_PreviewMouseMove void
IsDragSourceChanged void
_adorner_MouseMove void
_adorner_MouseUp void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static FindAncestor ( Type ancestorType, Visual visual ) : FrameworkElement
ancestorType System.Type
visual Visual
Résultat System.Windows.FrameworkElement

GetAdornerLayer() public static méthode

public static GetAdornerLayer ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
Résultat string

GetDragDropControl() public static méthode

public static GetDragDropControl ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject
Résultat UIElement

GetDropTarget() public static méthode

public static GetDropTarget ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
Résultat string

GetIsDragSource() public static méthode

public static GetIsDragSource ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

IsMovementBigEnough() public static méthode

public static IsMovementBigEnough ( Point initialMousePosition, Point currentPosition ) : bool
initialMousePosition Point
currentPosition Point
Résultat bool

SetAdornerLayer() public static méthode

public static SetAdornerLayer ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
Résultat void

SetDragDropControl() public static méthode

public static SetDragDropControl ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject
value UIElement
Résultat void

SetDropTarget() public static méthode

public static SetDropTarget ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
Résultat void

SetIsDragSource() public static méthode

public static SetIsDragSource ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

Property Details

AdornerLayerProperty public_oe static_oe property

public static DependencyProperty,System.Windows AdornerLayerProperty
Résultat System.Windows.DependencyProperty

DragDropControlProperty public_oe static_oe property

public static DependencyProperty,System.Windows DragDropControlProperty
Résultat System.Windows.DependencyProperty

DropTargetProperty public_oe static_oe property

public static DependencyProperty,System.Windows DropTargetProperty
Résultat System.Windows.DependencyProperty

IsDragSourceProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsDragSourceProperty
Résultat System.Windows.DependencyProperty