Controlling Rendering

Data binding is simple when the source and target properties are compatible data types and the default rendering of the source is all you need to display. But often a bit of customization is required. The need for this in the previous section is obvious, because you want to display Images, not raw strings, in the GridView.

These types of customizations would be easy without data binding because you’re writing all the code to retrieve the data on your own. But with the two mechanisms discussed in this section, you don’t need to give up the benefits of data binding to get the desired results in more customized scenarios.

Get Universal Windows® Apps with XAML and C# Unleashed 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.