Show / Hide Table of Contents

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.Controls.Toolkit.dll
Syntax
public sealed class ItemDragEventArgs : EventArgs

Properties

| Improve this Doc View Source

AllowedEffects

Gets or sets the allowed effects.

Declaration
public DragDropEffects AllowedEffects { get; set; }
Property Value
Type Description
DragDropEffects
| Improve this Doc View Source

Cancel

Gets or sets a value indicating whether to cancel the action.

Declaration
public bool Cancel { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

DragDecoratorContent

Gets or sets the content to insert into the DragDecorator.

Declaration
public object DragDecoratorContent { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

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
| Improve this Doc View Source

DragSource

Gets or sets the control that is the source of the drag.

Declaration
public DependencyObject DragSource { get; set; }
Property Value
Type Description
DependencyObject
| Improve this Doc View Source

Effects

Gets or sets the effects of the completed drag operation.

Declaration
public DragDropEffects Effects { get; set; }
Property Value
Type Description
DragDropEffects
| Improve this Doc View Source

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
| Improve this Doc View Source

KeyStates

Gets the key states.

Declaration
public DragDropKeyStates KeyStates { get; }
Property Value
Type Description
DragDropKeyStates

Methods

| Improve this Doc View Source

RemoveDataFromDragSource()

This method removes the data from the drag source.

Declaration
public void RemoveDataFromDragSource()
  • Improve this Doc
  • View Source