Defining a Data Template

So far you have written code that downloads RSS content, using an instance of the FeedItem class. As you learned for WPF, in XAML-based development platforms, presenting data requires you to define a data template. In this case, you need to define one to represent every instance of the FeedItem class. In the App.xaml code file, add the following definition:

<Application    x:Class="UniversalReader.App"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:UniversalReader"    RequestedTheme="Light">    <Application.Resources>        <DataTemplate x:Key="FeedTemplate">            <Border BorderBrush="Black" ...

Get Visual Basic 2015 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.