September 2012
Intermediate to advanced
464 pages
10h 55m
English
WPF prides itself on separating appearance from behavior. This is more evident with control templates than anything else. A control template is just that: a template for a control's appearance, which does not affect its behavior. In this recipe, we'll take a look at the basics of writing a control template by creating a custom template for a ProgressBar control. In later recipes we'll discuss other, more complex control templates.
Make sure Visual Studio is up and running.
We'll create an alternative control template for a ProgressBar to demonstrate the basics of control template authoring:
CH08.CustomProgressBar.App.xaml. Add a new ...