Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. Jumping from ASP.NET to Silve... > Working with VisualStateManager

1.6. Working with VisualStateManager

Silverlight 2 provides a way to easily manage a control's visual state and programmatically change its state based on your needs. This is possible through the use of the VisualStateManager. Particularly useful in Blend 2, the VisualStateManager allows you to define the various possible states your control can assume, and when asked to change state, will handle the low-level details of changing the control's appearance to match the correct state, either through transition effects or directly.

In the following code, you will take your existing RatingControl class and extend it to include a new property: the rating's current value. This will allow you to represent the user's actual rating and gives you an opportunity to enrich the visual display of the value.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial