I have a command that needs to be disabled if certain condition is met. I understand you can't change activities at runtime. Thus, I tried to set my command's command.Grammar.Enabled to false. It doesn't seem to do anything. Is there any way to disable a command?
I have, however, it doesn't work because you can't make changes to a workflow activity at runtime. Setting Enabled property to false on an activity would cause an InvalidOperationException to be thrown.