Group EffectsSuppose we need multiple effects for controls. We can achieve this by grouping the effects.If you see in XAML behind, we have this:Let's see how we can group multiple effects.Let's say we need DropShadow as well as OuterGlow Bitmap effect for a TextBlock then how can we achieve this!As you see in above XAML display, we have both effects with different colors.Like this you can do effect combinations based on your imagination!Effect When Event is TriggeredAn effect can be triggered by an event, such as MouseOver, Focus, etc.Let's have two triggers for two different controls, first one will be for image when we MouseOver the Image would have OuterGlow and the second one will be for a Focused and it would have OuterGlow effect.Let's do it!And to apply the styles use as following:Now we can have the following effects when MouseOver or Focus for respective controls.Hope this article helps.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members: