Using VSM to Create Sophisticated Button Rollovers
June 30th, 2008 | View Comments
About a year ago, I wrote about some of the difficulties associated with creating button rollovers that went beyond your standard 3-transition variants. The states everyone creates animations for and most tools easily facilitate are the following:

If you wanted to create more states or create transitions between combinations of the above three states, you had to write extra code. In our latest release of Expression Blend, our June 2008 Preview, we make it easy for you to solve the above problem by providing a new feature known as the Visual State Manager (VSM).
For an example of something created using VSM, play with the following two buttons that I just created:
These two buttons have the default animations that play when you mouse over and press down, but they also have intermediate transitions defined as well. For example, you have transitions defined for going from mouse over back to to normal, or from pressed back to mouse over, or from focused back to unfocused, etc.
All of the states and the transitions between them were edited using the feature I briefly mentioned known as VSM. What makes the VSM feature inside Expression Blend really nice is that you get to create the above transitions without writing any code and using just the UI itself.
On the UI front, we introduced a new panel known as the Interaction panel that allows you to quickly view the various states, state groups, duration, and any transitions defined:
This panel can be easily accessed when you edit the Control Template of a control or user control. For controls such as button that already have state groups and states defined, you don’t have to do anything extra. Your interaction panel will display the state groups, states, and default transitions that the control automatically provides.
Of course, VSM can be used to do more than simple rollover effects, but since creating rollovers is a popular task, I figure I’d just throw that out there as one of the various things you can do with this feature.
To learn more about VSM, the following links should be helpful:
- States, VSM, and Parts: Part 1, Part 2, Part 3, Part 4 by Karen Corby
- Creating Control Skins in the Visual State Manager by Christian Schormann
- States and Button Style by Celso Gomes
- Four Video Tutorials by Steve White
Cheers!
Kirupa





July 2nd, 2008 at 10:47 pm
Ok… All of this work to do this in SliverLight is why it will never succeed, something this simple can be done in Flash with out any coding involved.
July 2nd, 2008 at 11:00 pm
Could you elaborate?
Nothing I’ve described in this post requires code to be written, and second, can you show me how to do this in Flash CS3?
July 3rd, 2008 at 2:09 pm
Good procees, Work in the SilverLight!!!!!
May 3rd, 2011 at 2:37 am
Please inform me it text link ads labored right? I dont want to sumit it once more if i should text link ads not have to! Either the weblog glitced out or i am an idiot, the text link ads second option doesnt shock me lol. thanks for text link ads an amazing blog! Anyway, in my language, there are text link ads usually not a lot good supply like this.
November 11th, 2011 at 12:10 pm
I was diagnosed with celiac over a year ago and have started inventing my own gluten-free recipes. I’ve gotten so many requests from people that I want to start a blog to start posting them. What free blog websites are out there and which ones are the easiest to access/most likely to pop up on a search engine?.