Skip to content

Commit 665ba24

Browse files
Arlodotexemichael-hawker
authored andcommitted
Fixed AoT data binding in IncrementalLoadingCollectionSample.xaml. Fixes #514
1 parent 5fd59df commit 665ba24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/Collections/samples/IncrementalLoadingCollectionSample.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22
<Page x:Class="CollectionsExperiment.Samples.IncrementalLoadingCollectionSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6-
xmlns:local="using:IncrementalLoadingCollectionExperiment.Samples"
6+
xmlns:local="using:CollectionsExperiment.Samples"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
mc:Ignorable="d">
99

@@ -45,7 +45,7 @@
4545
CornerRadius="4">
4646
<ListView x:Name="PeopleListView">
4747
<ListView.ItemTemplate>
48-
<DataTemplate>
48+
<DataTemplate x:DataType="local:Person">
4949
<Grid>
5050
<Grid.ColumnDefinitions>
5151
<ColumnDefinition Width="Auto" />
@@ -58,7 +58,7 @@
5858
<TextBlock Grid.Column="1"
5959
Margin="12"
6060
VerticalAlignment="Center"
61-
Text="{Binding Name}" />
61+
Text="{x:Bind Name}" />
6262
</Grid>
6363
</DataTemplate>
6464
</ListView.ItemTemplate>

0 commit comments

Comments
 (0)