Use the pixel shader effect to add effects to the rendered object, such as grayscale, red eye elimination, pixel brightness, and shading. The pixel shader effect uses algorithms to change how pixels are displayed. For example, the following illustration shows a projection applied to a button.
You can use the pixel shader effect that accompanies the Silverlight runtime, or you can create it yourself.
Description
The pixel shader effects in Silverlight are rendered in a software manner. Any objects that apply effects will also be rendered in software mode. Performance is most degraded when you animate a large visual object or an effect's properties. As a result, you should use the effect with caution and adequate testing to ensure that your users get the same experience you expected.
This topic includes the following sections.
Projection and Blur
Apply multiple effects to an object
Create a custom pixel shader effect
Projection and Blur
The Silverlight runtime comes with two pixel shader effects: Dropshadoweffect and Blureffect. The examples in this section use Dropshadoweffect and demonstrate the following features:
How to use XAML to apply this effect to an object.
How to use Style to apply an effect to one or more objects.
How to use code to apply an effect to an object.
How to animate the properties of an effect.
Description
The use of Blureffect is similar to Dropshadoweffect.
The following example shows how to use XAML to apply Dropshadoweffect to a Button.
Run this example: http://go.microsoft.com/fwlink/?LinkId=139798&sref=DropShadowEffect_1