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, a boolean value which if
true says that the logic shouldn't check for hits on AspectDroppable widgets, a decimal value
which must be between 0.0 and 1.0 which defines the amount of transparency the widget will have
while being dragged around on the client, a boolean value stating if the widget should "animate" when
dropped on an accepting AspectDroppable, a "handle" which if non-null defines a DOM element ID by which
the widget will be draggable from and an "ID" to pass into the Dropped event handler when widget is dropped.
Namespace:
Gaia.WebWidgetsAssembly: 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, decimal effect, string handle, string idToPass ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ dropped As EventHandler, _ boundingRect As Rectangle, _ revert As Boolean, _ silent As Boolean, _ effect As Decimal, _ handle As String, _ idToPass As String _ ) |
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)
- effect
- Type: System..::.Decimal
If not 1.0 then Widget will be semi transparent while being dragged according to the value between 0.0 and 1.0 where 0.0 is 100% invisible and 1.0 is 100% visible. Default value of this property is 1.0M
- handle
- Type: System..::.String
Specifies the handle element id for dragging
- idToPass
- Type: System..::.String
Id which will be passed into the Dropped event handler if one is defined. This can be very useful for figuring out which item was being dropped when you pair the AspectDraggable together with an AspectDroppable.
