O'Reilly logo

Silverlight 4 User Interface Cookbook by Vibor Cipan

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

Animating ListBox items

With Silverlight 4, a new StateGroup called LayoutStates has been added to the ListBoxItem class. Expression Blend 4 exposes LayoutStates, and allows you to manipulate and add different effects and animation when ListBoxItems are added or removed from the ListBox control. This recipe gives you some ideas and a simple approach on how to start using those effects and get you up and running with LayoutStates.

Getting ready

Start your Expression Blend 4 and create a new project. Make it a Silverlight 4 project and from the Language drop-down list choose C#.

How to do it -getting started with effects

  1. After you have created your new project, under the Objects and Timeline pane you will see UserControl and LayoutRoot. LayoutRoot ...

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