Replies: 0 comments 1 reply
-
Hey @Sergio0694, I believe this discussion should be on MVVM repo, can you move it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my opinion
ObservableProperty
(as a publisher) should not know anything aboutICommand
(as a subscriber). So the followingis more elegant if it can be written as follows.
With
CanExecuteDependsOnAttribute
we don't need to locate and decorateObservableProperty
whenever commands depend on it. It is more convenient if we place all setup related to a command in one place rather than two places spanned across multiple lines.Any comments are welcome.
Beta Was this translation helpful? Give feedback.
All reactions