Constructor taking event handler for the Dropped event in addition to a Rectangle which defines the boundaries of where the user can drag the item, a boolean value which says if the dragging operation should be reverted when the user lets go of the widget and a boolean value which if true says that the logic shouldn't check for hits on AspectDroppable widgets. To set this value to true might seriously optimize the JavaScript on the client-side.

Namespace:  Gaia.WebWidgets
Assembly:  Gaia.WebWidgets (in Gaia.WebWidgets.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public AspectDraggable(
	EventHandler dropped,
	Rectangle boundingRect,
	bool revert,
	bool silent
)
Visual Basic (Declaration)
Public Sub New ( _
	dropped As EventHandler, _
	boundingRect As Rectangle, _
	revert As Boolean, _
	silent As Boolean _
)

Parameters

dropped
Type: System..::.EventHandler
delegate called when item is dropped on page
boundingRect
Type: System.Drawing..::.Rectangle
Rectangle from which to constrain movements within
revert
Type: System..::.Boolean
If true Draggable will "animate" back to the former place after being dropped
silent
Type: System..::.Boolean
If true Draggable "silent" meaning it will not look for droppables before dropped (and thereby not give visual clues about which droppables it is actually over), the default value of this parameter is false

See Also