Version

DragSource Class Members

The following tables list the members exposed by DragSource.

Public Constructors
 NameDescription
Public ConstructorDragSource ConstructorInitializes a new instance of the DragSource class.  
Public Fields
 NameDescription
Public Fieldstatic (Shared in Visual Basic)CopyCursorTemplatePropertyIdentifies the CopyCursorTemplate dependency property.  
Public Fieldstatic (Shared in Visual Basic)DataObjectPropertyIdentifies the DataObject dependency property.  
Public Fieldstatic (Shared in Visual Basic)DragChannelsPropertyIdentifies the DragChannels dependency property.  
Public Fieldstatic (Shared in Visual Basic)DragTemplatePropertyIdentifies the DragTemplate dependency property.  
Public Fieldstatic (Shared in Visual Basic)DropNotAllowedCursorTemplatePropertyIdentifies the DropNotAllowedCursorTemplate dependency property.  
Public Fieldstatic (Shared in Visual Basic)IsDraggablePropertyIdentifies the IsDraggable dependency property.  
Public Fieldstatic (Shared in Visual Basic)MoveCursorTemplatePropertyIdentifies the MoveCursorTemplate dependency property.  
Public Properties
 NameDescription
Public PropertyAssociatedObjectGets the UIElement associated with this DragSource object.  
Public PropertyCopyCursorTemplateGets or sets the data template used as a cursor while copy operation is performed during drag-and-drop operation. This is a dependency property.  
Public PropertyDataObjectGets or sets the object that hold the meaningful for the drag-and-drop operation data.  
Public PropertyDependencyObjectTypeGets the System.Windows.DependencyObjectType that wraps the CLR type of this instance. (Inherited from System.Windows.DependencyObject)
Public PropertyDispatcherGets the System.Windows.Threading.Dispatcher this System.Windows.Threading.DispatcherObject is associated with. (Inherited from System.Windows.Threading.DispatcherObject)
Public PropertyDragChannelsGets or sets the channels that object can be dragged into. This is a dependency property.  
Public PropertyDraggingOffsetGets or sets the drag mouse offset after which dragging is initiated. The default and minimal value is 2 pixels.  
Public PropertyDragTemplateGets or sets data template used by dragged element while drag-and-drop operation is performed. This is a dependency property.  
Public PropertyDropNotAllowedCursorTemplateGets or sets the data template used as a cursor if there drop target is not found during drag-and-drop operation. This is a dependency property.  
Public PropertyFindDropTargetModeGets or sets the find drop target mode.  
Public PropertyIsDraggableGets or sets a value indicating whether marked element can be dragged. This is a dependency property.  
Public PropertyIsSealedGets a value that indicates whether this instance is currently sealed (read-only). (Inherited from System.Windows.DependencyObject)
Public PropertyMoveCursorTemplateGets or sets the data template used as a cursor during regular drag-and-drop operation. This is a dependency property.  
Public Methods
 NameDescription
Public MethodClearValueOverloaded. Clears the local value of a property. The property to be cleared is specified by a System.Windows.DependencyProperty identifier. (Inherited from System.Windows.DependencyObject)
Public MethodCoerceValueCoerces the value of the specified dependency property. This is accomplished by invoking any System.Windows.CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject)
Public MethodEquals (Inherited from System.Windows.DependencyObject)
Public MethodGetHashCodeGets a hash code for this System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject)
Public MethodGetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject)
Public MethodGetValueReturns the current effective value of a dependency property on this instance of a System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject)
Public MethodInvalidateProperty (Inherited from System.Windows.DependencyObject)
Public MethodReadLocalValueReturns the local value of a dependency property, if it exists. (Inherited from System.Windows.DependencyObject)
Public MethodSetCurrentValue (Inherited from System.Windows.DependencyObject)
Public MethodSetValueOverloaded. Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from System.Windows.DependencyObject)
Protected Methods
 NameDescription
Protected MethodOnPropertyChangedInvoked whenever the effective value of any dependency property on this System.Windows.DependencyObject has been updated. The specific dependency property that changed is reported in the event data. (Inherited from System.Windows.DependencyObject)
Protected Internal MethodShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from System.Windows.DependencyObject)
Public Events
 NameDescription
Public EventDragCancelOccurs when drag-and-drop operation is canceled when DragDropCancelEventArgs.Cancel is set to true in some of event handlers for DragStart or DragEnter events or when DragDropManager.EndDrag method is called with dragCancel set to true.  
Public EventDragEndOccurs at the very end of the drag-and-drop operation. This is the last event that is raised while drag-and-drop is performed.  
Public EventDragEnterOccurs when mouse pointer enter into UIElement marked as drop target while drag-and-drop is in progress. This event is cancelable.  
Public EventDragLeaveOccurs when mouse pointer leaves the boundaries of the UIElement marked as drop target while drag-and-drop operation is in progress.  
Public EventDragOverOccurs when mouse pointer is moving over UIElement marked as drop target while drag-and-drop operation is in progress. This event occurs after DragEnter event is raised.  
Public EventDragStartOccurs when UIElement marked as draggable initiate drag operation. This event is cancelable.  
Public EventDropOccurs when mouse is released while drag-and-drop operation is in progress, mouse pointer is over UIElement marked as drop target and drag channels of the drag source matches the drop channels of the drop target.  
See Also