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

Jignesh KumarRank #91 · 22.9K reputationPosted Feb 26, 2023, 11:00 PM EST
Hello,
Please refer this thread,
https://stackoverflow.com/questions/51071083/viewmodel-doesnt-exist-in-namespace
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 2, 2023, 2:21 PM EST
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.