Class
CommandService

Encapsulates the command-related routine within a RadListView instance.

Definition

Namespace:Telerik.Maui.Controls.Compatibility.DataControls.ListView.Commands

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public class CommandService : CommandServiceBase<RadListView>

Inheritance: objectCommandServiceBase<RadListView>CommandService

Inherited Members CommandServiceBase<RadListView>.userCommandsCommandServiceBase<RadListView>.defaultCommandsCommandServiceBase<RadListView>.ownerCommandServiceBase<RadListView>.UserCommands

Methods

CanExecuteCommand(CommandId, object)

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

Declaration

cs-api-definition
public bool CanExecuteCommand(CommandId id, object parameter)

Parameters

id

CommandId

The CommandId value to look for.

parameter

object

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.

ExecuteCommand(CommandId, object)

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

Declaration

cs-api-definition
public bool ExecuteCommand(CommandId id, object parameter)

Parameters

id

CommandId

The CommandId value to look for.

parameter

object

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.