The AspectDraggable type exposes the following members.

Constructors

  NameDescription
AspectDraggableOverloaded.

Methods

  NameDescription
Equals
Overridden to check for dual inclusion on AspectList
(Inherited from Aspect<(Of <(T>)>).)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Overridden basically since Equals is overridden
(Inherited from Aspect<(Of <(T>)>).)
GetSender
Returns the actual sender of the event raised by the aspect. Used by derived classes to provide the correct sender in aspect binding scenarios.
(Inherited from Aspect.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IncludeScriptFiles
Override in inherited classes to include javascript files. Do not forget to call base.IncludeScriptFiles()
(Overrides Aspect..::.IncludeScriptFiles()()().)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
DeepCopy
When set to true a deep copy of the element will be created to be dragged when used either with UseDocumentBody or MakeGhost properties. Does not have an effect if standard drag and drop behavior is used. When set to false, will only create a shallow copy of the draggable element and that means only the root element is copied. Can be used together with DragCssClass for interessting effect.
DragCssClass
Specify a CssClass to be applied while the Element is being dragged. The CssClass will be added regardless of Draggable configuration and removed immediately on drop.
Effect
Defines the amount of transparency the widget will have when being dragged on the surface. 0.0 means completely in-visible and 1.0 means completely visible (no transparency) You can also use the EffectEvents StartDragging + EndDragging to have a custom start effect and custom end effect which offers much more granularity on the draggable effect.
EffectEventEndDragging
Use this EffectEvent to wire up an effect at the end of the dragging
EffectEventReverting
Use this EffectEvent to wire up an effect when the element is reverted back to it's original location. Gaia.WebWidgets.EffectMove is parameterized to provide interessting effects when the item is reverted.
EffectEventStartDragging
Use this EffectEvent to wire up an effect at the start of the drag process.
Handle
Specifies client ID of the element in the DOM tree which will serve as a handle for dragging
HandleControl
Specifies Control which will serve as an handle for dragging. The Handle control must be a child of Draggable control
HitEffect
Set HitEffect to true if you want to visualize the Element which this item is dropped onto. When HitEffect is set to true it also has the nice side effect of disabling reverts which may be desireable in many dragdrop scenarios. You can specify the HitEffect with the EffectEventDropped EffectEvent.
IdToPass
Special ID to pass into AspectDroppable event handler if one is defined
MakeGhost
When set to true will create a ghost by cloning the draggable element. This creates the interessting effect of keeping the draggable control in it's place, while you drag around a proxy. Can be used together with UseDocumentBody and DeepCopy for various effects.
ParentControl
See ParentControl for documentation
(Inherited from Aspect.)
Rectangle
Rectangular constraints for how much and where the widget can be dragged around. To set it to only draggable horizontally for instance set this value to; new Rectangle(-4000, 0, 4000, 0)
Revert
If true then when the widget is dropped the widget will be reverted back to its original position
Silent
If true then while dragged the dragging logic will avoid to check for intersections against widgets with the AspectDroppable aspect. This is a big optimalization, so use it if you don't have an AspectDroppable attached which is listening in on Dropped events.
UseDocumentBody
When set to true, will add the element to the Body of the Document while dragging. This fixes some browser issues and also makes it easier to drag and drop between different Gaia controls on the page since it doesn't care about different overflow settings, stacking contexts, etc.

Events

  NameDescription
Dropped
Event raised when element dropped after a dragging operation. If you have created a container with AspectDroppable, both the Dropped events will be fired in the same callback, first this Event and then the Dropped event of AspectDroppable. The Left and Top styles reflect the new position of the element after it was dropped

See Also