INotifyCommandChanged patterns #941
mwpowellhtx
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder, is there such a pattern as
INotifyCommandChanged
?The use case is implementing
ICommand
viaRelayCommand
which also provides theNotifyCanExecuteChanged
method. As a means of exposing such aCommandChanged
event, for example, that can be digested separating concerns into a proper WPF assembly via the dispatcher.Event handling may expose ability to invoke
RelayCommand.NotifyCanExecuteChanged
. Assuming invoked from the context of perhaps a property, or with ability to inform the ICommand property.And from something like WPF.
With the event args connecting some pieces there.
At least that's the 💡 idea.
Beta Was this translation helpful? Give feedback.
All reactions