Udostępnij za pośrednictwem


DelegateCommand.CanExecute(Object) Method

Definition

Gets a value indicating whether this command is executable.

public:
 virtual bool CanExecute(System::Object ^ parameter);
public:
 bool CanExecute(Platform::Object ^ parameter);
bool CanExecute(winrt::Windows::Foundation::IInspectable const & parameter);
[System.Diagnostics.DebuggerStepThrough]
public bool CanExecute (object parameter);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member CanExecute : obj -> bool
override this.CanExecute : obj -> bool
Public Function CanExecute (parameter As Object) As Boolean

Parameters

parameter
Object

A parameter to pass to the canExecute delegate (specified in the constructor).

Returns

True if the command is executable or if the canExecute given during initialization was null.

Implements

Attributes

Applies to