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

Encapsulates the command-related routine within a RadRadialMenu instance.

Definition

Methods

Determines whether the default command, associated with the specified Id can be executed given the parameter provided.

C#
public bool CanExecuteDefaultCommand(CommandId id, object parameter)
Parameters:idCommandId

The CommandId value to look for.

parameterobject

The parameter that is passed to the CanExecute and Execute methods of the command.

Returns:

bool

True if the command can be executed, false otherwise.

Attempts to find the command, associated with the specified Id and to perform its Execute routine, using the provided parameter.

C#
public bool ExecuteCommand(CommandId id, object parameter)
Parameters:idCommandId

The CommandId value to look for.

parameterobject

The parameter that is passed to the CanExecute and Execute methods of the command.

Returns:

bool

True if the command is successfully executed, false otherwise.

Executes the default (built-in) command (without looking for user-defined commands), associated with the specified Id.

C#
public bool ExecuteDefaultCommand(CommandId id, object parameter)
Parameters:idCommandId

The CommandId value to look for.

parameterobject

The parameter that is passed to the CanExecute and Execute methods of the command.

Returns:

bool

True if the command is successfully executed, false otherwise.