New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public abstract class CommandServiceBase<T> where T : class

Inheritance: objectCommandServiceBase<T>

Derived Classes: DataGridCommandServiceSideDrawerCommandService

Fields

The dictionary of default commands indexed by command ID.

C#
protected readonly Dictionary<int, ICommand> defaultCommands

The owner control instance.

C#
protected readonly T owner

The collection of user-defined commands.

C#
protected readonly CommandCollection<T> userCommands

Properties

Gets the collection of user-defined commands.

C#
public ObservableCollection<ControlCommandBase<T>> UserCommands { get; }
Property Value:

The observable collection of user commands.