© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
18 replies
voidey

Wrong DataContext Inference?

First of all I am still a beginner, so I might not completely know what I am saying. So I am building an Avalonia MVVM app, it is an inventory management system. I have used Postgres for the database. The problem here is, in InventoryView, the commands to edit and delete rows can not be resolved. Rider tells me that the datacontext for the commands is InventoryView, which should be InventoryViewModel, if I am right?

I am very new to Avalonia, and only familiar with Winforms, which a lot different.
Screenshot_From_2024-11-12_23-14-37.png
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

❔ Datacontext WPF?
C#CC# / help
3y ago
❔ DataContext & UserControl
C#CC# / help
3y ago
Type Inference strategies?
C#CC# / help
3y ago