I tried to read and understand your UseOf_INotifyPropertyChanged c# project. When I tried to create the same project with differnt name all works goes fine but MainWindow.xaml designer not accepting the following line.
I am getting the following error.
Error XDG0008 The name "MainWindowViewModel" does not exist in the namespace "clr-namespace:DebtorAccountInfo.ViewModel"
I don't see the same error in your project. Would you please help me to correct this error. I like this project the way you preseted. I need to understand and correct this error.
thanks,
Obaid
Tuhin PaulPosted Mar 2, 2023, 7:21 PM
The XAML designer is unable to find the MainWindowViewModel class in the DebtorAccountInfo.ViewModel namespace. Try the steps below to fix it:
1. Double-check that the namespace in your XAML file matches the namespace in your C# code. The clr-namespace syntax can be a bit tricky to get right, so make sure you've typed everything correctly.
2. Make sure the name of the MainWindowViewModel class matches exactly between your XAML and C# files. Even a small difference in spelling or capitalization can cause the error you're seeing.
3. Sometimes, the XAML designer may not update its internal cache of your project's classes until you build the project. Try rebuilding your solution to see if that resolves the issue.
Jignesh KumarPosted Feb 27, 2023, 4:00 AM
Hello,
Please refer this thread,
https://stackoverflow.com/questions/51071083/viewmodel-doesnt-exist-in-namespace