O'Reilly logo

Blend for Visual Studio 2012 by Example : Beginner's Guide by Abhishek Shukla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – modifying with visual states

A button in WPF has default visual states, and we see these different visual states when we interact with the button by clicking on it or by hovering the mouse over it. We will modify these states, add a new state, and see the transition between these states on user interaction.

  1. Create a new project in Blend and name it VSMDemo. Add a button to the art board. Now right-click on the button, navigate to Edit Template | Edit a Copy…, and you would see a dialog box prompting you to give a name to this resource. Give a name and click on Ok. The following screenshot shows this:
    Time for action – modifying with visual states
  2. Select the States panel, and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required