Say that I have a CompositeCommand with a lot of DelegateCommands registered.
If one of the child DelegateCommands fires up RaiseCanExecuteChanged, this will result in firing the event CompositeC开发者_JS百科ommand.CanExecuteChanged, raising this same event in the other children, or it will only affect the active DelegateCommand?
Just figured this out. By analyzing the internals of Prism, I noticed that the CompositeCommand registers itself in its children's CanExecuteChanged event. Thus, everytime a registered command raises the CanExecuteChanged handler, the composite command does the same in itself and in all of its children.
加载中,请稍侯......
精彩评论