Microsoft.Expression.Interactions namespace ships with an interesting control - ControlStoryBoardAction. This control can be applied on any Silverlight UI Control that has Content property. What does it do?
Well, it allows us to add Animation/Movement Behavior to any control. Let us see how.
Let us implement a swivel effect to an image on a page. Steps to implement this:
- Add an image to the Page.xaml -> say the image name is x:Name="image"
- Drag and drop the ControlStoryBoardAction from the toolbox on the image.
The new XAML appears like: