How can i set mulitple effect like(shadow and blur) on same element.
See Using Effects in WPF (Part 2) by Greg Schechter where one can simply nest Decorators
like a Border
and put a different Effect
s on each.
To build on the initial answer and provide an example, just enclose the UIElement
within another new UIElement
(any element for that matter, like a stack panel for example).
Then apply effects for both elements as such:
<StackPanel>
<MediaElement Name="myMedia" Source="Fairytale Dream.wmv" >
<MediaElement.Effect>
<ShaderEffectLibrary:BloomEffect />
</MediaElement.Effect>
</MediaElement>
<StackPanel.Effect>
<ShaderEffectLibrary:ZoomBlurEffect />
</StackPanel.Effect>
</StackPanel>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With