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
Inherited Members
Namespace: Microsoft.Windows
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public static class DragDrop
Fields
| Improve this Doc View SourceDragEnterEvent
Identifies the System.Windows.DragDrop.DragEnter attached event.
Declaration
public static readonly ExtendedRoutedEvent DragEnterEvent
Field Value
Type | Description |
---|---|
ExtendedRoutedEvent |
DragLeaveEvent
Identifies the System.Windows.UIElement.DragLeave attached event.
Declaration
public static readonly ExtendedRoutedEvent DragLeaveEvent
Field Value
Type | Description |
---|---|
ExtendedRoutedEvent |
DragOverEvent
Identifies the System.Windows.UIElement.DragOver attached event.
Declaration
public static readonly ExtendedRoutedEvent DragOverEvent
Field Value
Type | Description |
---|---|
ExtendedRoutedEvent |
DropEvent
Identifies the System.Windows.UIElement.Drop attached event.
Declaration
public static readonly ExtendedRoutedEvent DropEvent
Field Value
Type | Description |
---|---|
ExtendedRoutedEvent |
GiveFeedbackEvent
Identifies the System.Windows.UIElement.GiveFeedback attached event.
Declaration
public static readonly ExtendedRoutedEvent GiveFeedbackEvent
Field Value
Type | Description |
---|---|
ExtendedRoutedEvent |
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 SourceIsDragInProgress
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 SourceDoDragDrop(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 SourceDragDropCompleted
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> |