C#C
C#2y ago
iskander

✅ (Avalonia) i dont get data binding

so im following the official tutorial on how to make a simple to-do app with avalonia. everything is fine and dandy but for whatever reason, trying to add a data context doesnt display my hardcoded values i set!
//MainWindow.axaml
<Window         //boiler plate stuff
        x:DataType="vm:MainWindowViewModel"
        x:Class="testAvaloniaApplication1.Views.MainWindow"
        Title="Iskander's great and grand TO-DO list">
    
    <Views:ToDoListView DataContext="{Binding ToDoList}"/>
    
</Window>
Was this page helpful?