O'Reilly logo

Microsoft Silverlight 4 Business Application Development Beginner's Guide by Frank LaVigne, Cameron Albert

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 - learning the Visual State Manager

In this exercise, we are going to use the Visual State Manager to add visual cues to our control template. While we could type out all this XAML, let's have Blend generate all the XAML for us. In order to do this, we will need to complete the following steps:

  1. In the MainPage.XAML file of the CakeNavigationButtons project, right-click on any of the buttons that use the navButtonStyle.
  2. Click Edit Template|Edit Current from the context menu as in this screenshot:
    Time for action - learning the Visual State Manager
  3. Click on the States tab in the upper-left part of the Blend window as shown below:
  4. Click on Normal. Note how the art board gets a red border ...

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