Where are the Layout Templates for Built-In Silverlight Controls?

When customizing Silverlight controls, there are several techniques you can follow.  Each technique provides a varying level of control and development effort.  If you want to change the layout of any of the built-in Silverlight controls, you will generally need to work from the existing default template contracts as a starting point.  So where are these template contracts?  Currently, there are two places you can find these templates:

SDK Documentation
The SDK documentation contains a subsection called Control Styles and Templates.  In this section, you will find the default XAML template contracts for each control.

Generic.xaml Inside System.Windows.Controls.dll and System.Windows.Controls.Extended.dll
The default XAML templates can also be found inside the various control assemblies as an embedded resource.  Simply open Reflector and navigate to the generic.xaml embedded resource.

Reflector

Enjoy!


Feedback

# re: Where are the Layout Templates for Built-In Silverlight Controls?

Gravatar If you want other styles for the controls you can go to www.xamltemplates.net and you can download for free, they have one and also you can buy more if you want. 3/11/2008 2:15 PM | XAML Templates

Comments have been closed on this topic.