Skip to main content
Version: 11.0.x

Data Templates

These pages describe the important concept of a data template in Avalonia UI.

A data template allows an Avalonia UI control to display an object in its content zone which is not itself a control. This concept is explained using a practical code example.

info

For some information about the concept of control layout zones in Avalonia UI, see here.

Example Code

To follow the example code that follows, create a new Avalonia UI project using the 'Avalonia Application' template in C#.