Class ItemDragEventArgs
Information describing a drag event on a UIElement.
Inheritance
System.Object
System.EventArgs
ItemDragEventArgs
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: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public sealed class ItemDragEventArgs : EventArgs
Properties
| Improve this Doc View SourceAllowedEffects
Gets or sets the allowed effects.
Declaration
public DragDropEffects AllowedEffects { get; set; }
Property Value
Type | Description |
---|---|
DragDropEffects |
Cancel
Gets or sets a value indicating whether to cancel the action.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Data
Gets or sets the data associated with the item container being dragged.
Declaration
public object Data { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
DataRemovedFromDragSource
Gets a value indicating whether removing data from the source is handled by the target.
Declaration
public bool DataRemovedFromDragSource { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
DragDecoratorContent
Gets or sets the content to insert into the DragDecorator.
Declaration
public object DragDecoratorContent { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
DragDecoratorContentMouseOffset
Gets or sets the mouse offset from the item being dragged at the beginning of the drag operation.
Declaration
public Point DragDecoratorContentMouseOffset { get; set; }
Property Value
Type | Description |
---|---|
Point |
DragSource
Gets or sets the control that is the source of the drag.
Declaration
public DependencyObject DragSource { get; set; }
Property Value
Type | Description |
---|---|
DependencyObject |
Effects
Gets or sets the effects of the completed drag operation.
Declaration
public DragDropEffects Effects { get; set; }
Property Value
Type | Description |
---|---|
DragDropEffects |
Handled
Gets or sets a value indicating whether an item drag operation was handled.
Declaration
public bool Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
KeyStates
Gets the key states.
Declaration
public DragDropKeyStates KeyStates { get; }
Property Value
Type | Description |
---|---|
DragDropKeyStates |
Methods
| Improve this Doc View SourceRemoveDataFromDragSource()
This method removes the data from the drag source.
Declaration
public void RemoveDataFromDragSource()