Skip to content

Commit e3149c7

Browse files
authored
Update README.md
1 parent 6adf989 commit e3149c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ xmlns:controls="clr-namespace:MyControl.Controls;assembly=MyControl"
4040
![DataSource](images/DataSource_Array.png)
4141
``` xml
4242
<ItemsControl ItemsSource="{Binding .}">
43-
<ItemsControl.DataTemplate>
44-
<TextBlock Text="{Binding tag_name}"/>
45-
</ItemsControl.DataTemplate>
43+
<ItemsControl.ItemTemplate>
44+
<DataTemplate>
45+
<TextBlock Text="{Binding tag_name}"/>
46+
</DataTemplate>
47+
</ItemsControl.ItemTemplate>
4648
</ItemsControl>
4749
```
4850
## Third-Party Notices

0 commit comments

Comments
 (0)