O'Reilly logo

Mastering Windows 8 C++ App Development by Pavel Yosifovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing a data view

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

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required