© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
Mek

✅ Can't figure out two error messages - Avalonia

Splash.axaml: https://pastebin.com/2BJjnKqa
Error:
Unable to resolve type SplashViewModel from namespace using:SplashScreen.ViewModels Line 19, position 4.
Unable to resolve type SplashViewModel from namespace using:SplashScreen.ViewModels Line 19, position 4.
I originally had the SplashView.axaml file in the Views folder and the SplashViewModel.cs in the ViewModels folder of my project. I have tried moving the SplashViewModel.cs file from the ViewModels folder. Didn't work.

UpdateAvailableView.axaml: https://pastebin.com/5bePbKzn
Error:
Unable to find public constructor for type GradeBook:GradeBook.ViewModels.UpdateAvailableViewModel() Line 12, position 4
Unable to find public constructor for type GradeBook:GradeBook.ViewModels.UpdateAvailableViewModel() Line 12, position 4
and here, I have tried searching the problem on google -> led to stack overflow but the comment said that the xml template requires parameterless public constructors, however, I'm using some code from other C# projects using the Avalonia framework and they pass values in through the public contructor
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

✅ Can't figure out display error avalonia
C#CC# / help
2y ago
❔ An Error I can't figure out
C#CC# / help
3y ago
✅ Can't figure out json logic
C#CC# / help
2y ago
✅ Can't figure out why I am getting this error?
C#CC# / help
2y ago