O'Reilly logo

MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide by Johnny Tordgeman

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

Creating control templates

In today's world, professionals want to use a wide array of controls such as Button, TextBox, Slider, and so on. In many cases, you don't want to reinvent the wheel but just use the basic control in a way that fits your design. How many times did you want to have a round button? Or a control that does the exact same action as a slider but looks completely different? To answer these kinds of issues the concept of templates was introduced. Templating, as the name implies, allows you to completely change the way a control looks without sacrificing its behavior. To template a control, you first need a control. Let's create a new Silverlight application project, name it Chapter3-Templates and leave all the default options. ...

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