Apply to ImageBrush only?

Jul 7, 2010 at 7:19 PM


I am very new to the concept of effets in Silverlight  and WPF. Most of the images that I want to apply effects to are used as image brushes in shapes. Is there a way to apply the effects to the image brush without affecting the shape itself?


Jul 8, 2010 at 7:34 PM
Edited Jul 9, 2010 at 6:51 AM


Effects apply only to UIElement. Brushes are used as input for effects. I.e. you can mix brushes in an effect. See the Mixer and Subtractor filters (and the source code of one generated effect using one of them).

Mar 6, 2011 at 5:12 PM
Edited Mar 6, 2011 at 5:18 PM

In WPF 4, effects apply also to ContainerVisual (ancestor class of DrawingVisual).