Class
CommandServiceBase<T>

Provides a base implementation for command services that manage user and default commands.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Type Parameters:

T

The type of control this command service is associated with.

Syntax:

cs-api-definition
public abstract class CommandServiceBase<T> where T : class

Inheritance: objectCommandServiceBase<T>

Derived Classes: CommandServiceDataGridCommandServiceSideDrawerCommandService

Fields

defaultCommands

The dictionary of default commands indexed by command ID.

Declaration

cs-api-definition
protected readonly Dictionary<int, ICommand> defaultCommands

Field Value

Dictionary<int, ICommand>

owner

The owner control instance.

Declaration

cs-api-definition
protected readonly T owner

Field Value

T

userCommands

The collection of user-defined commands.

Declaration

cs-api-definition
protected readonly CommandCollection<T> userCommands

Field Value

CommandCollection<T>

Properties

UserCommands

Gets the collection of user-defined commands.

Declaration

cs-api-definition
public ObservableCollection<ControlCommandBase<T>> UserCommands { get; }

Property Value

ObservableCollection<ControlCommandBase<T>>

The observable collection of user commands.