This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
The ToDoList tutorial fails at the 'add a data context' step #15757
Labels
You can continue the conversation there. Go to discussion →
Describe the bug
The ToDoList tutorial example fails at the Add A Data Context step.
At this step with the 11.0.2 packages, it builds and runs but you get a window with some text at the top but not the expected content.
I updated the Avalonia packages to 11.0.10 which seem to be the latest at this time according to nuget (disclaimer, Im a 20 years Java/C++ dev unfamiliar with C# so in at the deep end here and not confident with what im doing) you instead get a window frame with a transparent center that just shows whatever was behind it.
I also found a working project on github at https://codeload.github.com/Cyberphinx/AvaloniaUI-TodoList/zip/refs/heads/master but this was on 0.10.10 and .net 5.0. I tried to update this to the same .net7 and Avalonia 11.0.10 I was using, and when I got something to build and run I got the same transparent content.
To Reproduce
Follow the steps from the example here using the latest VisualStudio plugin. On creating the project, the tutorial is out of date and doesn't match what you see in VS, but I just used the defaults, desktop app, reactiveUI and no other options selected (although I have tried multiple variations choosing the community MVVM / compiled bindings options but had even less success with them.
Expected behavior
I expect to see the UserControl being displayed within the Window control as the tutorial shows it to be, but instead get transparent content as shown in the hopefully attached image.
Avalonia version
11.0.10
OS
Windows
Additional context
The text was updated successfully, but these errors were encountered: