Share via


Effect

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the pixel shader effect to use for rendering this object.

<object ...>
  <object.Effect>
    singleEffect
  </object.Effect>
</object>
value = object.Effect
object.Effect = value

XAML Values

Value

Description

singleEffect

Exactly one object element that represents a pixel shader effect. This can be either a BlurEffect or DropShadowEffect.

Property Value

Type: Effect

Describes the specifics of the desired bitmap effect.

This property is read/write. The default value is null.

Managed Equivalent

Effect

Remarks

For information about the Effect object, see Effects in the JavaScript API.

Applies To

Border (Silverlight 2)

Canvas

Ellipse

Glyphs

Image

InkPresenter

Line

MediaElement

PasswordBox (Silverlight 2)

Path

Polygon

Polyline

Popup (Silverlight 2)

Rectangle

StackPanel (Silverlight 2)

TextBlock

TextBox (Silverlight 2)

Version Information

Silverlight 3

See Also

Reference