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 ...
Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition 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.