Click or drag to resize
DragDropBehaviorTState Class
Defines the basic methods of a generic DragDropBehavior.
Inheritance Hierarchy

Namespace: Telerik.Windows.DragDrop.Behaviors
Assembly: Telerik.Windows.Controls (in Telerik.Windows.Controls.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public abstract class DragDropBehavior<TState> : DependencyObject, 
	IDragDropBehavior<TState>
where TState : DragDropState

Type Parameters

TState
The state type.

The DragDropBehaviorTState type exposes the following members.

Constructors
  NameDescription
Protected methodDragDropBehaviorTState
Initializes a new instance of the DragDropBehaviorTState class.
Top
Methods
  NameDescription
Public methodCanDrop
Returns a value specifying whether the current drag operation can be completed.
Public methodCanStartDrag
Returns a value specifying whether the drag operation can be started.
Public methodCoerceDraggedItems
When overridden in a derived class, filters the dragged items collection if necessary.
Protected methodCopyDraggedItems
Copies the items that are dragged in the operation specified by the provided ListBoxDragDropState.
Public methodDragDropCanceled
When overridden in a derived class cleans up a cancelled drag operation. This method is called only in the context of the drag source control.
Public methodDragDropCompleted
When overridden in a derived class completes the drag operation. This method is called only in the context of the drag source control.
Public methodDrop
Completes the drop operation. This method is called only in the context of the drop target control.
Public methodGetDragDropEffects
Returns the DragDropEffects for the current drag drop operation. The return value affects the mouse cursor.
Protected methodStatic memberInsertItems
Helper method that inserts the specified items in the source list, at the specified index. If index==-1, adds the items at the end of the list.
Protected methodIsMovingItems
Returns true if the dragged items should be removed from the source list, otherwise false.
Protected methodStatic memberRemoveItems
Helper method that removes the specified items from the source list.
Top
Extension Methods
  NameDescription
Public Extension MethodChildrenOfTypeT
Gets all child elements recursively from the visual tree by given type.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodFindChildByTypeT
Finds child element of the specified type. Uses breadth-first search.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodGetParents
Enumerates through element's parents in the visual tree.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodGetVisualParentT
Searches up in the visual tree for parent element of the specified type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsAncestorOf
Determines whether the element is an ancestor of the descendant.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by DependencyObjectExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodParentOfTypeT
Gets the parent element from the visual tree by given type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Top
Fields
  NameDescription
Public fieldStatic memberItemTypeProperty
Identifies the ItemType dependency property.
Top
Properties
  NameDescription
Public propertyAllowReorder
Gets or sets the value specifying whether the ListBoxDragDropBehavior can reorder items or not.
Public propertyItemType
Gets or sets the Type of the items that can be accepted by the host control. This is a dependency property.
Top
See Also