Skip to content

Commit 9540ac8

Browse files
authored
Add missing DataType attribute (#718)
1 parent 9db98f0 commit 9540ac8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/concepts/templates/content-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You can define a data template (for no particular class) using the `DataTemplate
2727
x:Class="MySample.MainWindow"
2828
Title="MySample">
2929
<Window.ContentTemplate>
30-
<DataTemplate>
30+
<DataTemplate DataType="{x:Type local:Student}">
3131
<StackPanel>
3232
<Grid ColumnDefinitions="Auto,Auto" RowDefinitions="Auto,Auto">
3333
<TextBlock Grid.Row="0" Grid.Column="0">First Name:</TextBlock>

i18n/ru/docusaurus-plugin-content-docs/current/concepts/templates/content-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You can define a data template (for no particular class) using the `DataTemplate
2727
x:Class="MySample.MainWindow"
2828
Title="MySample">
2929
<Window.ContentTemplate>
30-
<DataTemplate>
30+
<DataTemplate DataType="{x:Type local:Student}">
3131
<StackPanel>
3232
<Grid ColumnDefinitions="Auto,Auto" RowDefinitions="Auto,Auto">
3333
<TextBlock Grid.Row="0" Grid.Column="0">First Name:</TextBlock>

i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/templates/content-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import ContentTemplateStudentScreenshot from '/img/concepts/templates/contenttem
2727
x:Class="MySample.MainWindow"
2828
Title="MySample">
2929
<Window.ContentTemplate>
30-
<DataTemplate>
30+
<DataTemplate DataType="{x:Type local:Student}">
3131
<StackPanel>
3232
<Grid ColumnDefinitions="Auto,Auto" RowDefinitions="Auto,Auto">
3333
<TextBlock Grid.Row="0" Grid.Column="0">First Name:</TextBlock>

0 commit comments

Comments
 (0)