20.4. List Styles
For the rest of this chapter, you'll be concentrating on two features that are provided by all the WPF list controls: styles and data templates.
Out of these two tools, styles are simpler (and less powerful). In many cases, they allow you to add a bit of formatting polish. In the following sections, you'll see how styles let you format list items, apply alternating-row formatting, and apply conditional formatting according to the criteria you specify.
20.4.1. The ItemContainerStyle
In Chapter 11, you learned how styles allow you to reuse formatting with similar elements in different places. Styles play much the same role with lists—they allow you to apply a set of formatting characteristics to each of the individual items. ...
Get Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 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.