WpfCommandRegistry

Ecng.Xaml

Implementação específica do WPF de ICommandRegistry que se integra com RequerySuggested.

Implementa: ICommandRegistry

Construtores

WpfCommandRegistry
public WpfCommandRegistry()
wpfCommandRegistry = WpfCommandRegistry()

Cria um novo registro de comandos WPF.

Métodos

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

Register a command for automatic revalidation.

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

Raise CanExecuteChanged on all registered commands.

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

Unregister a command.

command
Command to unregister.