Skip to content

Commit

Permalink
Merge pull request #557 from AustinBachurski/main
Browse files Browse the repository at this point in the history
Couple small typos in "Coming from WPF?" section.
  • Loading branch information
maxkatz6 authored Oct 10, 2024
2 parents ca034db + 8ed1938 commit 7eee08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/get-started/wpf/datatemplates.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For example, this code adds a data template to display the view model class `MyV
radius of 8 containing a TextBox will be displayed here.
DataType is required only if you use Compiled Bindings, so it can be type-checked. -->
<ContentControl Content="{Binding Foo}"/>
<UserControl>
</UserControl>
```

Data templates in Avalonia can also target interfaces and derived classes (which cannot be done in WPF) and so the order of `DataTemplate`s can be important: `DataTemplate`s within the same collection are evaluated in declaration order so you need to place them from most-specific to least-specific as you would in code.
Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/wpf/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The following code shows a `UserControl` which defines its own CSS-like style.
</Style>
</UserControl.Styles>
<TextBlock Classes="h1">Header</TextBlock>
<UserControl>
</UserControl>
```

<XpfAd/>

0 comments on commit 7eee08c

Please sign in to comment.