Class DragEventArgs
Contains arguments relevant to all drag-and-drop events (System.Windows.DragDrop.DragEnter, System.Windows.DragDrop.DragLeave, System.Windows.DragDrop.DragOver, and System.Windows.DragDrop.Drop).
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Windows
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public sealed class DragEventArgs : ExtendedRoutedEventArgs
Properties
| Improve this Doc View SourceAllowedEffects
Gets a member of the System.Windows.DragDropEffects enumeration that specifies which operations are allowed by the originator of the drag event.
Declaration
public DragDropEffects AllowedEffects { get; }
Property Value
Type | Description |
---|---|
DragDropEffects |
Data
Gets a data object that contains the data associated with the corresponding drag event.
Declaration
public IDataObject Data { get; }
Property Value
Type | Description |
---|---|
IDataObject |
Effects
Gets or sets the target drop-and-drop operation.
Declaration
public DragDropEffects Effects { get; set; }
Property Value
Type | Description |
---|---|
DragDropEffects |
Methods
| Improve this Doc View SourceGetPosition(UIElement)
Returns a drop point that is relative to a specified System.Windows.UIElement.
Declaration
public Point GetPosition(UIElement relativeTo)
Parameters
Type | Name | Description |
---|---|---|
UIElement | relativeTo | A UIElement object for which to get a relative drop point. |
Returns
Type | Description |
---|---|
Point | A drop point that is relative to the element specified in relativeTo. |