06-02-2012 06:00 AM
Custom commands can be "registered" to ACT by specifying a unique URN (key) and an associated ComandHandler delegate method. This feature is most commonly used to register a command handler (Click handler) for a custom menu item.
Registration is performed by calling the RegisterCommand() method in the ActApplication class. Commands are removed from registration using RevokeCommand().
Does anyone know of a way to "validate" whether a given URN has been previously registered?
ACT must keep some sort of internal collection to track registered commands. Is that collection accessible from code? I guess I am looking for something lke a "RegisteredCommandsCollection.Contains(string)" method that returns a bool..
Thanks for any help.