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 and 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.
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 ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ dropped As EventHandler, _ boundingRect As Rectangle, _ revert As Boolean, _ silent As Boolean, _ effect As Decimal _ ) |
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
