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. ...
Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.