Class DragEventArgs
public class DragEventArgs : RoutedEventArgs
- Inheritance
-
DragEventArgs
- Inherited Members
Constructors
DragEventArgs(RoutedEvent<DragEventArgs>, IDataObject, Interactive, Point, KeyModifiers)
[Unstable("This constructor might be removed in 12.0. For unit testing, consider using DragDrop.DoDragDrop or IHeadlessWindow.DragDrop.")]
public DragEventArgs(RoutedEvent<DragEventArgs> routedEvent, IDataObject data, Interactive target, Point targetLocation, KeyModifiers keyModifiers)
Parameters
routedEvent
RoutedEvent<DragEventArgs>data
IDataObjecttarget
InteractivetargetLocation
PointkeyModifiers
KeyModifiers
Properties
Data
public IDataObject Data { get; }
Property Value
DragEffects
public DragDropEffects DragEffects { get; set; }
Property Value
KeyModifiers
public KeyModifiers KeyModifiers { get; }
Property Value
Methods
GetPosition(Visual)
public Point GetPosition(Visual relativeTo)
Parameters
relativeTo
Visual