O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

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

The Parts and States Model

If you try the button that you created in the previous section, you'll find it's a major disappointment. Essentially, it's nothing more than a rounded red rectangle—as you move the mouse over it or click it, there's no visual feedback. The button lies there, inert. (Of course, the Click event still fires when you click the button, but that's small consolation.) To solve this problem, you need to include specially named elements and animations in your control template.

To understand how to make a template that can plug into the back-end code that a control uses, you need to study the Silverlight documentation. Online, you can view http://tinyurl.com/352brmx, which takes you to the Control Styles and Templates section. ...

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