Skip to content
MikhailTymchukDX edited this page Aug 24, 2016 · 2 revisions

Demo Page

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

Name Description
opacity A number that represents the opacity of the drop shadow from 0 (fully transparent) to 1.0 (fully opaque).
radius An integer that 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 A Boolean value that specifies whether the drop shadow should track the position of the panel to which it is attached.
trackPositionDelay A number that specifies the length of the timer interval that is used when tracking the targer position.
width An integer that specifies the drop shadow width in pixels.

Client methods

Name Description
setShadow(force, norecurse) Draws shadow around the control.

Client properties

opacity

A number that represents the opacity of the drop shadow from 0 (fully transparent) to 1.0 (fully opaque).

Remarks: The default is .5.

Getter name: get_opacity()
Setter name: set_opacity(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)

radius

An integer that specifies the radius of rounded corners in pixels.

Getter name: get_radius()
Setter name: set_radius(value)

width

An integer that specifies the drop shadow width in pixels.

Remarks: The default is 5.

Getter name: get_width()
Setter name: set_width(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)

trackPosition

A Boolean value that specifies whether the drop shadow should track the position of the panel to which it is attached.

Remarks: Set this property to true if the panel is absolutely positioned or if it might move at runtime. The default is false.

Getter name: get_trackPosition()
Setter name: set_trackPosition(value)

Client methods

setShadow(force, norecurse)

Draws shadow around the control.

Remarks: 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
Clone this wiki locally