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

Provides command execution services for RadSideDrawer controls. This class extends CommandServiceBase<T> to handle side drawer-specific commands.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class SideDrawerCommandService : CommandServiceBase<RadSideDrawer>

Inheritance: objectCommandServiceBase<RadSideDrawer>SideDrawerCommandService

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

Methods

Determines whether the default command associated with the specified command ID can be executed.

C#
public bool CanExecuteDefaultCommand(SideDrawerCommandId id, object parameter)
Parameters:idSideDrawerCommandId

The SideDrawerCommandId that identifies the command to check.

parameterobject

The parameter to pass to the command's CanExecute method.

Returns:

bool

true if the default command can be executed; otherwise, false.

Executes the command associated with the specified command ID.

C#
public bool ExecuteCommand(SideDrawerCommandId id, object parameter)
Parameters:idSideDrawerCommandId

The SideDrawerCommandId that identifies the command to execute.

parameterobject

The parameter to pass to the command.

Returns:

bool

true if the command was executed successfully; otherwise, false.

Executes the default command associated with the specified command ID.

C#
public bool ExecuteDefaultCommand(SideDrawerCommandId id, object parameter)
Parameters:idSideDrawerCommandId

The SideDrawerCommandId that identifies the default command to execute.

parameterobject

The parameter to pass to the command.

Returns:

bool

true if the default command was executed successfully; otherwise, false.