Animations may be created manually by constructing the appropriate animation type, specifying properties, and then calling BeginStoryboard on the element to animate. The properties must be of type dependency property, which you want to animate on the animation object.
In this example, when the MouseEnter event triggers, the following Storyboard animation runs. DoubleAnimation and ColorAnimation accepts the attached properties, Storyboard.TargetName and Storyboard.TargetProperty, which allows the Storyboard to change the said property of the targeted element at runtime:
<Storyboard> <DoubleAnimation Storyboard.TargetName="squareBox" Storyboard.TargetProperty="Height" To="200"/> <DoubleAnimation Storyboard.TargetName="squareBox" Storyboard.TargetProperty="Width" To="400"/> <ColorAnimation Storyboard...