Channels ▼  Web Development  Silverlight Animation  Starting an
Animation with Code  The EventTrigger approach is an easy way to
kick off an animation. However, in the current build, not all
Silverlight events can be used as event triggers. The Loaded
event is supported, but mouse-related events like MouseEnter,
MouseLeave, and MouseMove are not.  If you want to start an
animation in response to these events, you need to interact with
the storyboard programmatically. Fortunately, it's easy. The
first step is to move your storyboard out of the Triggers
collection and place it in another collection of the same
element: the Resources collection.  All Silverlight elements
provide a Resourcesproperty, which holds a collection where you
can store miscellaneous objects. The primary purpose of the
Resources collection is to allow you to define objects in XAML
that aren't elements, and so can't be placed into the visual
layout of your content region. For example, you might want to
declare a Brush object as a resource