Créer une App Moderne — Avalonia UI & .NET
Brancher la collection dans XAML
Le namespace vm: doit pointer vers le projet. Exemple complet pour ne pas bloquer :
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:TodoApp.ViewModels;assembly=TodoApp"
x:DataType="vm:TodoListViewModel">
<ItemsControl ItemsSource="{Binding Taches}" />
</Window>
Taches.Add("Configurer Avalonia");
Taches.Add("Afficher la liste");
Taches.Add("Préparer les commandes");