all, I want an image to blur (using the Blur effect) when the mouse hovers over it, and return to normal when the mouse leaves.
I'm using WPF 4, XAML, and VB.NET 2010 in a Silverlight-based project.
all, I want an image to blur (using the Blur effect) when the mouse hovers over it, and return to normal when the mouse leaves.
I'm using WPF 4, XAML, and VB.NET 2010 in a Silverlight-based project.
The simplest way is to use the
VisualStateManager
and modify theMouseOverState
You can use the
Transition
to control the animation for the Normal -> MouseOver change and the MouseOver -> Normal change independently.Then in the control that displays the image have the following
Effect
:Tutorial
More information