O'Reilly logo

Pro C# 2010 and the .NET 4 Platform, Fifth Edition by Andrew Troelsen

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

31.5. Building a Custom Control Template with Visual Studio 2010

When you are building a custom template for a control, you could do so with nothing but C# code. Using this approach, you would be adding data to a ControlTemplate object and then assigning it to a control's Template property. Most of the time, however, you will define the look and feel of a ControlTemplate using XAML, and to help in the endeavor, you will typically want to use Expression Blend to do so. You will use Expression Blend for this very thing in the final example of this chapter, but for now, you will build a simple template using Visual Studio 2010. Although this IDE does not include as many template design tools as Expression Blend, using Visual Studio 2010 is a good ...

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