New to Telerik UI for WPFStart a free 30-day trial

Represents a command abstraction that is associated with a particular ICommand instance.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Type Parameters:

T

Syntax:

C#
public abstract class ControlCommandBase<T> : AttachableObject<T>, ICommand where T : RadRadialMenu

Inheritance: objectAttachableObject<T>ControlCommandBase<T>

Derived Classes: RadialMenuCommand

Implements: ICommand

Inherited Members AttachableObject<T>.OnDetached(T)AttachableObject<T>.OnAttached()AttachableObject<T>.Owner

Constructors

C#
protected ControlCommandBase()

Methods

Determines whether the command can be executed against the provided parameter.

C#
public virtual bool CanExecute(object parameter)
Parameters:parameterobject

The command parameter.

Returns:

bool

The Default value is False.

Implements: ICommand.CanExecute(object)

Performs the core action given the provided parameter.

C#
public virtual void Execute(object parameter)
Parameters:parameterobject

The command parameter.

Implements: ICommand.Execute(object)

Raises the CanExecuteChanged event.

C#
protected virtual void OnCanExecuteChanged(EventArgs e)
Parameters:eEventArgs

Events

Occurs when the CanExecute state of the command changes.

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged