The most obvious difference from other XAML frameworks is that Avalonia uses a CSS-like styling system. Styles aren't stored in a Resources collection as in WPF, they are stored in a separate Styles collection:
1
<UserControl>
2
<UserControl.Styles>
3
<!-- Make TextBlocks with the h1 style class have a font size of 24 points -->