Data templates provide a powerful way to visualize and interact with data, partly because of the power of data binding. Sometimes, however, more customization is needed. For example, in a list of the
Book objects, every book that's currently on sale should be displayed with a different color, or have some special animation, and so on.
The following sections describe some ways of customizing data templates.
Value converters are types that implement the
Windows::UI::Xaml::Data::IValueConverter interface. This interface provides a way to convert one value to another value, which can be of different types. Suppose we want to show a collection of books, but those that are on sale should have a slightly different ...