So I just fell in love…with the Visual State Manager in Silverlight 2.0 Beta 2.

This thing is sweet. You can cleanly manage the visual appearance for various states. Not only does this tool make it ridiculously simple to create animations that alter the state it also provides a tool that makes it easy to review these states and how they look.

The OLD Way:

Wire Up Mouse Event Obtain Reference of for each state transition from resources Cast resources as Storyboards Determine the appropriate future state Begin the appropriate Storyboard

The NEW Way

Wire Up Mouse Event Determine the appropriate future state Tell Visual State Manager to go to the appropriate state

Not only is the new way cleaner, it also makes it easy to invoke state transitions from virtually anywhere, all you need is a reference to the state’s target and the state name. No more carrying references to those storyboards all over the place…YAY!