Show / Hide Table of Contents

Class DragDrop

Provides helper methods and fields for initiating drag-and-drop operations, including a method to begin a drag-and-drop operation, and facilities for adding and removing drag-and-drop related event handlers.

Inheritance
System.Object
DragDrop
Inherited Members
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 static class DragDrop

Fields

| Improve this Doc View Source

DragEnterEvent

Identifies the System.Windows.DragDrop.DragEnter attached event.

Declaration
public static readonly ExtendedRoutedEvent DragEnterEvent
Field Value
Type Description
ExtendedRoutedEvent
| Improve this Doc View Source

DragLeaveEvent

Identifies the System.Windows.UIElement.DragLeave attached event.

Declaration
public static readonly ExtendedRoutedEvent DragLeaveEvent
Field Value
Type Description
ExtendedRoutedEvent
| Improve this Doc View Source

DragOverEvent

Identifies the System.Windows.UIElement.DragOver attached event.

Declaration
public static readonly ExtendedRoutedEvent DragOverEvent
Field Value
Type Description
ExtendedRoutedEvent
| Improve this Doc View Source

DropEvent

Identifies the System.Windows.UIElement.Drop attached event.

Declaration
public static readonly ExtendedRoutedEvent DropEvent
Field Value
Type Description
ExtendedRoutedEvent
| Improve this Doc View Source

GiveFeedbackEvent

Identifies the System.Windows.UIElement.GiveFeedback attached event.

Declaration
public static readonly ExtendedRoutedEvent GiveFeedbackEvent
Field Value
Type Description
ExtendedRoutedEvent
| Improve this Doc View Source

QueryContinueDragEvent

Identifies the System.Windows.UIElement.QueryContinueDrag attached event.

Declaration
public static readonly ExtendedRoutedEvent QueryContinueDragEvent
Field Value
Type Description
ExtendedRoutedEvent

Properties

| Improve this Doc View Source

IsDragInProgress

Gets a value indicating whether a drag is in progress.

Declaration
public static bool IsDragInProgress { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

DoDragDrop(DependencyObject, Object, DragDropEffects, DragDropKeyStates)

Initiates a drag-and-drop operation.

Declaration
public static void DoDragDrop(DependencyObject dragSource, object data, DragDropEffects allowedEffects, DragDropKeyStates initialKeyState)
Parameters
Type Name Description
DependencyObject dragSource

A reference to the dependency object that is the source of the data being dragged.

System.Object data

A data object that contains the data being dragged.

DragDropEffects allowedEffects

One of the System.Windows.DragDropEffects values that specifies permitted effects of the drag-and-drop operation.

DragDropKeyStates initialKeyState

The initial key state when the drag operation begins.

Events

| Improve this Doc View Source

DragDropCompleted

An event that is raised when a drag operation is completed.

Declaration
public static event EventHandler<DragDropCompletedEventArgs> DragDropCompleted
Event Type
Type Description
System.EventHandler<DragDropCompletedEventArgs>
  • Improve this Doc
  • View Source