Sergio
Community.Toolkit.MVVM Error on [ObservableProperty]: The name 'x' does not exist in current context
Well you're certainly not going to attract people willing to help with that attitude. I told you I have been busy this week and apologized. I offered some help and told you to put that code in a separate project, which should fix the issue. And yes, the issue is caused by VS and that project type, it's not a bug in the MVVM Toolkit. So you're not even getting mad at the right person, let alone you shouldn't be getting mad at anyone
22 replies
Community.Toolkit.MVVM Error on [ObservableProperty]: The name 'x' does not exist in current context
I suspect it's some tooling issue in that project type. I would recommend moving all those viewmodels etc. to a separate project (eg. NS2.0, or NETFX4.8 as well), and reference that in your final VS extension project. That should work
22 replies
Microsoft MVVM toolkit
You'll want to define some
bool CanRegister
property or method in your viewmodel. Make that check that the password and email are not empty. Make those two observable properties and have them notify the command. Then make the command have CanExecute = nameof(CanRegister)
9 replies