WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Styles and Templates

Edit

Question

What is a ControlTemplate?

Edit

Answer

A ControlTemplate defines the Visual Tree of a control.

All standard controls come with a default template, but if the default representation of the control lacks details or does not match your needs, you can create another template for the control and apply the template to that control.

Also, when creating a custom control, you'll most probably want to override the default ControlTemplate inherited from the base class.

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.