DropShadow - MikhailTymchukDX/AppVeyorTest GitHub Wiki
demo)
DropShadowExtender (DropShadow is an extender that applies drop shadow to an ASP.NET Panel control.
Properties
Name | Description |
---|---|
Opacity | The opacity of the shadow, from 0 (transparent - no shadow rendered) to 1.0, which is fully opaque black. Remarks: The default is .5. |
Radius | Specifies the radius of rounded corners in pixels. |
Rounded | A Boolean value that specifies whether or not corners of the target and drop shadow should be rounded. |
TrackPosition | Determines whether or not the DropShadow tracks position or size changes of the panel it is targeting. Remarks: This is false by default. If true, DropShadowBehavior uses a timer to poll for the position of its target, so don't turn it on unless it's needed. |
Width | The shadow width on each side in pixels. Remarks: The default is 5. |
Client properties
opacity
A number that represents the opacity of the drop shadow from 0 (fully transparent) to \1.0 (fully opaque).
Getter name: get_opacity()
Setter name: set_opacity(value)
radius
An integer that specifies the radius of rounded corners in pixels.
Getter name: get_radius()
Setter name: set_radius(value)
rounded
A Boolean value that specifies whether or not corners of the target and drop shadow should be rounded.
Getter name: get_rounded()
Setter name: set_rounded(value)
trackPosition
A Boolean value that specifies whether the drop shadow should track the position of the panel to which it is attached.
Getter name: get_trackPosition()
Setter name: set_trackPosition(value)
trackPositionDelay
A number that specifies the length of the timer interval that is used when tracking the targer position.
Getter name: get_trackPositionDelay()
Setter name: set_trackPositionDelay(value)
width
An integer that specifies the drop shadow width in pixels.
Getter name: get_width()
Setter name: set_width(value)
Client methods
setShadow(force, norecurse)
Draws shadow around the control.
This function does most part of work when positioning and sizing the shadow. It caches values to avoid extra work. It's called on a timer so we need to keep its weight light. Params:
-
force
- Type: Boolean
- Description: Whether to force the bounds change.
-
norecurse
- Type: Boolean
- Description: Whether to recurse if we need to recreate the shadow div