Trên visual 2013 sử dụng book.cs thì xài bình thường, bên 2015 thì gặp lỗi
Xaml:
<Page
x:Class="DEMOlistview.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:DEMOlistview"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
**xmlns:data ="using:DemoDataBinding"**
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<ListView x:Name="listView" HorizontalAlignment="Left" Height="377" Margin="10,105,0,0" VerticalAlignment="Top" Width="auto">
<ListView.ItemTemplate>
<DataTemplate **x:DataType="data:Book"**>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Image Width="150" Source="{x:Bind CoverImage }" HorizontalAlignment="Center"></Image>
<StackPanel Margin="20,20,0,0">
<TextBlock FontSize="18" Text="{x:Bind Title}" HorizontalAlignment="Right"></TextBlock>
<TextBlock FontSize="10" Text="{x:Bind Author }" HorizontalAlignment="Right"></TextBlock>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</Page>