Table of Contents

Method CanExecute

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CanExecute(string, object?)

Returns whether the command can be executed.

public virtual bool CanExecute(string name, object? parameter = null)

Parameters

name string

Command name.

parameter object

A parameter that may be used in executing the command. This parameter may be ignored by some implementations.

Returns

bool

True if the command can be executed with the given parameter and current state; False otherwise.