Thursday, July 30, 2009

Drop Shadow on MouseEnter in Silverlight 3

Silverlight 3 has made it really simple now.
Go explore other effects too, they're all in the same namespace.

using System.Windows.Media.Effects;


MouseEnter += delegate
{
Effect = new DropShadowEffect
{
Color = Colors.Black,
BlurRadius = 13,
ShadowDepth = 3
};
};
MouseLeave += delegate
{
Effect = null;
};

No comments:

Post a Comment