RelayCommands NotifyCanExecuteChanged issue #628
Unanswered
unseensenpai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are migrating our WPF project from the MVVMLight library to the Microsoft CommunityToolkit library.
We went ahead following the shared Microsoft migration documentation and updated all our (about 1200) commands accordingly. Also i refactored all project with annotations. So all codes are generated automatically.
The issue is our viewmodel has external model base. When we type something on txtUserName, UserModel properties are changed. But commands not affected from this change. Cause only set property side is notifying commands. So how can i notify each command on declared viewmodel after each user model change.
BaseViewModel.cs
LoginViewModel extended from BaseViewModel
LoginWindow.xaml Our View.
My UserModel and Generic ModelBase below:
ModelBase.cs
UserModel
But login button not activated.
Thats all my informations. How can i trigger commands on each user model change.
Thats huge problem about my WPF project cause nothing working about commands and observable collections. Thanks for answers.
Beta Was this translation helpful? Give feedback.
All reactions