ICommandRegistry

Ecng.ComponentModel

Registry for commands that need automatic CanExecute revalidation.

方法

Register
public void Register(IRevalidatableCommand command)
iCommandRegistry.Register(command)

Register a command for automatic revalidation.

command
Command to register.
RevalidateAll
public void RevalidateAll()
iCommandRegistry.RevalidateAll()

Raise CanExecuteChanged on all registered commands.

Unregister
public void Unregister(IRevalidatableCommand command)
iCommandRegistry.Unregister(command)

Unregister a command.

command
Command to unregister.