© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago
antimatter8189

ViewModel does not exsist in namespace, But it does

Got this Code:
 d:DataContext="{d:DesignInstance Type=main:CloseReasonViewModel,
    IsDesignTimeCreatable=False}">
 d:DataContext="{d:DesignInstance Type=main:CloseReasonViewModel,
    IsDesignTimeCreatable=False}">

Xaml gives me autocomplete on CloseReasonViewModel
However Im getting a warning on that line that the ViewModel doesn't exist, which is does with the correct namespace.
I've got more viewModels there and Views and they work fine, with the same namespace.
What could be the problem?
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

❔ namespace 'Models' does not exist in the namespace 'BlazorBookGroup'
C#CC# / help
4y ago
The name "___" does not exist in the namespace "clr-namespace:redfish.Controls"
C#CC# / help
5mo ago
❔ ✅ 'Engines' does not exist in the namespace 'BenchmarkDotNet'
C#CC# / help
3y ago
✅ the type or namespace name 'ListingProjects' does not exist in the namespace models
C#CC# / help
11mo ago