Show / Hide Table of Contents

Class DragDrop

Implements Drag and Drop feature for ItemsControl (ListBox)

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: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class DragDrop

Fields

IsDragSourceProperty

The is drag source property

Declaration
public static readonly DependencyProperty IsDragSourceProperty
Field Value
Type Description
DependencyProperty

IsDropTargetProperty

The is drop target property

Declaration
public static readonly DependencyProperty IsDropTargetProperty
Field Value
Type Description
DependencyProperty

Properties

AllowRightMouseButton

Gets or sets value indicating whether right mouse button is allowed for drag and drop

Declaration
public bool AllowRightMouseButton { get; set; }
Property Value
Type Description
System.Boolean

Instance

Gets the instance of DrapDrop

Declaration
public static DragDrop Instance { get; }
Property Value
Type Description
DragDrop

The instance.

IsDragDropInProgress

Gets a value indicating whether is drag and drop in progress.

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

true if drag and drop is in progress; otherwise, false.

Methods

GetIsDragSource(UIElement)

Gets the is drag source.

Declaration
public static bool GetIsDragSource(UIElement target)
Parameters
Type Name Description
UIElement target

The target.

Returns
Type Description
System.Boolean

GetIsDropTarget(UIElement)

Gets the is drop target.

Declaration
public static bool GetIsDropTarget(UIElement target)
Parameters
Type Name Description
UIElement target

The target.

Returns
Type Description
System.Boolean

SetIsDragSource(UIElement, Boolean)

Sets the is drag source.

Declaration
public static void SetIsDragSource(UIElement target, bool value)
Parameters
Type Name Description
UIElement target

The target.

System.Boolean value

if set to true [value].

SetIsDropTarget(UIElement, Boolean)

Sets the is drop target.

Declaration
public static void SetIsDropTarget(UIElement target, bool value)
Parameters
Type Name Description
UIElement target

The target.

System.Boolean value

if set to true [value].

Events

DragStarting

Occurs when [drag starting].

Declaration
public event DragDropEventHandler DragStarting
Event Type
Type Description
DragDropEventHandler

DropStarting

Occurs when [drop starting].

Declaration
public event DragDropEventHandler DropStarting
Event Type
Type Description
DragDropEventHandler
Back to top Generated by DocFX