So I'm watching the video at http://channel9.msdn.com/Events/MIX/MIX10/EX14. During the demo at 33 minutes in, something magical happens, and the system knows to disable the command button. Can anyone explain how it knows? I can't use this stuff if I can't figure out how it works.
@MasterRanger: It's the WPF Command framework. ICommand.CanExecute. Details beyond that? I'd imagine there's an event raised to any listeners (which would be anything bound to the command instance). The beauty of a framework is that I don't need to know how it works, just how to use it.
From some quick searching, it seems that the CommandManager class is involved.
@MasterRanger: Yea. The whole CanExecute thing. Take a look at this video.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.