ComponentOne Basic Library for WPF and Silverlight
RegisterDropTarget Method (C1DragDropManager)


C1.WPF Namespace > C1DragDropManager Class : RegisterDropTarget Method
System.Windows.UIElement that will act as a drop target.
True to register the element, false to unregister.
Registers (or unregisters) an element as a drop target.
Syntax
'Declaration
 
Public Sub RegisterDropTarget( _
   ByVal target As System.Windows.UIElement, _
   ByVal register As System.Boolean _
) 
'Usage
 
Dim instance As C1DragDropManager
Dim target As System.Windows.UIElement
Dim register As System.Boolean
 
instance.RegisterDropTarget(target, register)
public void RegisterDropTarget( 
   System.Windows.UIElement target,
   System.bool register
)

Parameters

target
System.Windows.UIElement that will act as a drop target.
register
True to register the element, false to unregister.
Remarks
The target element should not be transparent, or it will not receive any mouse events and thus won't be able to act as a drop target.
See Also

Reference

C1DragDropManager Class
C1DragDropManager Members