Skip to content

Commit fe08c75

Browse files
Merge pull request #592 from FishEagle/main
Fix class name referenced in code snippet
2 parents 01ca898 + bc06e49 commit fe08c75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/get-started/wpf/datatemplates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In Avalonia UI, data templates are not stored in the application resources. (The
88

99
Instead, data templates are placed either inside a `DataTemplates` collection in a control, or inside the (and on `Application`):
1010

11-
For example, this code adds a data template to display the view model class `MyViewModel`:
11+
For example, this code adds a data template to display the view model class `FooViewModel`:
1212

1313
```xml
1414
<UserControl xmlns:viewmodels="using:MyApp.ViewModels"
@@ -34,4 +34,4 @@ Data templates in Avalonia can also target interfaces and derived classes (which
3434

3535
In WPF you can create a `DataTemplateSelector` to select or create a `DataTemplate` based on the provided data. In Avalonia you cannot do this; but you can implement `IDataTemplate` which can be seen as a good replacement for the `DataTemplateSelector`. Please find a sample [here](https://github.com/AvaloniaUI/Avalonia.Samples/tree/main/src/Avalonia.Samples/DataTemplates/IDataTemplateSample).
3636

37-
<XpfAd/>
37+
<XpfAd/>

0 commit comments

Comments
 (0)