Styles and templates

Expression Studio 2.0
This page applies to WPF and Silverlight 2

The topics in this section describe how you can customize Windows Presentation Foundation and Silverlight 2 controls by creating a set of templates and styles, resulting in a unique and consistent look for your application. Templates and styles define the pieces that make up a control and the default behavior of the control, respectively.


Styles and templates are not supported in Microsoft Silverlight 1.0 projects, but you can create JavaScript classes to define reusable controls. For an example, see the Button class in the ButtonGallery sample that is available from the Samples tab in the Welcome Screen (on the Help menu). For more information, see the Silverlight learning center.

Community Additions