XamlUICommand.CanExecute(Object) Método

Definición

Recupera si el comando se puede ejecutar en su estado actual.

public:
 virtual bool CanExecute(Platform::Object ^ parameter) = CanExecute;
bool CanExecute(IInspectable const& parameter);
// This member is not implemented in C#
function canExecute(parameter)
' This member is not implemented in VB.NET

Parámetros

parameter
Object

Platform::Object

IInspectable

Datos que usa el comando. Si el comando no requiere datos, este objeto se puede establecer en NULL.

Devoluciones

Boolean

bool

true si se puede ejecutar este comando; de lo contrario, false.

Implementaciones

M:Windows.UI.Xaml.Input.ICommand.CanExecute(System.Object) M:System.Windows.Input.ICommand.CanExecute(System.Object) M:Windows.UI.Xaml.Input.ICommand.CanExecute(Platform::Object) M:Windows.UI.Xaml.Input.ICommand.CanExecute(IInspectable)

Comentarios

Normalmente, un origen de comandos llama a este método cuando se genera el evento CanExecuteChanged .

Se aplica a

Consulte también