XamlUICommand.CanExecute(Object) XamlUICommand.CanExecute(Object) XamlUICommand.CanExecute(Object) XamlUICommand.CanExecute(Object) Method

Definition

Retrieves whether the command can execute in its current state.

public : Platform::Boolean CanExecute(Platform::Object parameter)
bool CanExecute(winrt::Windows::Foundation::IInspectable parameter) const;
public bool CanExecute(Object parameter)
Public Function CanExecute(parameter As Object) As bool

Parameters

parameter
Object Object

Data used by the command. If the command does not require data, this object can be set to null.

Returns

bool bool

true if this command can be executed; otherwise, false.

Remarks

A command source typically calls this method when the CanExecuteChanged event is raised.

See also