© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
abdul

Avalonia UI: Issue with code generation

Hello everyone. I am new to C# and am attempting to learn Avalonia. I tried to follow the guide on Avalonia's website for the To Do List app, but I got stuck on making a new view. I am using VS 2022 and I am getting the following error when creating the new view
ToDoListView.axaml.cs
ToDoListView.axaml.cs
:
CS0103: The Name 'Initialize Component' does not exist in the current context
CS0103: The Name 'Initialize Component' does not exist in the current context

However, the default
MainView
MainView
provided with the solution template has identical code-behind with the obvious exception of differing class names.

I suspect this is an issue with code generation, but I'm not sure how I would determine this. Has anyone encountered this before?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Avalonia Issue
C#CC# / help
10mo ago
Errors in Avalonia.UI
C#CC# / help
2y ago
❔ avalonia cross platform issue
C#CC# / help
3y ago
Avalonia UI - binding in markup extension?
C#CC# / help
2y ago