Class DragEventArgs
Provides data for drag-and-drop events in Silverlight.
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.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 (implements IDataObject) that contains the data associated with the corresponding drag event. This value is not useful in all event cases; see Remarks.
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 |
Handled
Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
Declaration
public bool Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetPosition(UIElement)
Returns a drop point that is relative to a specified UIElement
Declaration
public Point GetPosition(UIElement relativeTo)
Parameters
Type | Name | Description |
---|---|---|
UIElement | relativeTo | The UIElement for which to get a relative drop point. |
Returns
Type | Description |
---|---|
Point | A drop point that is relative to the element specified in relativeTo. |